powered by
Finds the positive root of a quadratic equation ax^2 + bx + c .
quad_roots(a, b, c)
the coefficient for x^2
the coefficient for x
the constant
The positive root of the quadratic equation ax^2 + bx + c
# NOT RUN { pw<-power.calc(N=c(1000,2000), Case.Rate=c(0.5), k=NULL, MAF=seq(0.05, 0.1, 0.01), OR=c(3,4), Alpha=c(0.05), True.Model='All', Test.Model='All') # }
Run the code above in your browser using DataLab