power.t.test(n = NULL, delta = NULL, sd = 1, sig.level = 0.05, power = NULL, ratio = 1, sd.ratio = 1, type = c("two.sample", "one.sample", "paired"), alternative = c("two.sided", "one.sided"), df.method = c("welch", "classical"), strict = FALSE)power.htest, a list of the arguments (including the computed one)
augmented with method and note elements.
n, delta, power, sd, sig.level, ratio sd.ratio
must be passed as NULL,
and that parameter is determined from the others. Notice that the last two have non-NULL defaults
so NULL must be explicitly passed if you want to compute them.If strict = TRUE is used, the power will include the probability
of rejection in the opposite direction of the true effect, in the
two-sided case. Without this the power will be half the
significance level if the true difference is zero.
power.prop.test
power.t.test(delta=300, sd=450, power=.8, ratio=4)
Run the code above in your browser using DataLab