quad_roots {genpwr}R Documentation

Function to Solve Quadratic Equations

Description

Finds the positive root of a quadratic equation ax^2 + bx + c .

Usage

quad_roots(a, b, c)

Arguments

a

the coefficient for x^2

b

the coefficient for x

c

the constant

Value

The positive root of the quadratic equation ax^2 + bx + c

Examples

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')


[Package genpwr version 1.0.4 Index]