R/QOL.R

Defines functions QOL

Documented in QOL

QOL <-
function(alpha,beta,c,epsilon){

#c=1/length(T)*gamma*(1+2*sum())

n1=c*(qnorm(1-1/2*alpha)+qnorm(1-beta))^2/epsilon^2

n2=(c/(epsilon)^2)*(qnorm(1-alpha/2)+qnorm(1-beta/2))^2

n=max(n1,n2)
return(list(n1,n2))
}

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.