cloglog.sample.size(p.alt, n = NULL, p = 0.5, power = 0.8, alpha = 0.05,
alternative = c("two.sided", "greater", "less"), exact.n = FALSE,
recompute.power = FALSE, phi = 1)TRUE, the computed sample size will
not be rounded up. Default is FALSE.TRUE, after the sample size
is computed, the power will be recomputed. This is only advantageous
when the sample size is rounded up. Default is FALSE.phi > 1) or
deflate (phi < 1) variance. Default is 1.data.frame containing the power, sample size and all of the
input which was used to perform the computations.p.alt is given, but n is not, then
sample size is computed. If p.alt is given along with n,
then the power is computed. If only n is provided, the minimum
detectable difference is computed using the default power of 0.80.binom.confintcloglog.sample.size(p.alt = 0.8)
cloglog.sample.size(n = 20)
cloglog.sample.size(n = 20, power = 0.9)Run the code above in your browser using DataLab