powered by
The sSize.norm() is used to calculate the sample size used in the standard design with continuous endpoint.
sSize.norm()
sSize.norm(alpha, beta, theta, side, r, sigma2)
The Type I error rate or the significant level
beta The (1 -Power)
(1 -Power)
The size of treatment effect
One-sided or two-sided Test
The ratio of sample size between the experimental and control arms
The variance of the treatment effect
A list contains the total sample size, and the sample sizes required for the experimental and control arms.
# NOT RUN { alpha <- 0.05 beta <- 0.2 theta <- 0.2 side <- 1 r <- 1 sigma2 <- 0.8 sSize.norm(alpha = alpha, beta = beta, theta = theta, side = side, r = r, sigma2 = sigma2) # }
Run the code above in your browser using DataLab