R/Cox.Equality.R

Defines functions Cox.Equality

Documented in Cox.Equality

Cox.Equality <-function(alpha,beta,loghr,p1,d){
    p2=1-p1
    n=(qnorm(1-alpha/2)+qnorm(1-beta))^2/(loghr^2*p1*p2*d)
    return(n)
}

Try the TrialSize package in your browser

Any scripts or data that you put into this service are public.

TrialSize documentation built on July 8, 2020, 7:19 p.m.