powered by
Same idea as power.t.test. Less flexible, but faster.
power.t.test
n_2t_equal(d, sigsq, alpha = 0.05, beta = 0.2)
Numeric value specifying true difference in group means.
Numeric value specifying the variance of observations.
Numeric value specifying type-1 error rate.
Numeric value specifying type-2 error rate.
Numeric value indicating per-group sample size, rounded up to the nearest whole number.
# NOT RUN { # Per-group sample size for 90% power to detect difference of 0.2 with # sigsq = 1 n_2t_equal(d = 0.2, sigsq = 1, beta = 0.1) # }
Run the code above in your browser using DataLab