powered by
Same idea as power.t.test. Less flexible, but faster.
power.t.test
power_2t_equal(n = 100, d, sigsq, alpha = 0.05)
Numeric value specifying per-group sample size.
Numeric value specifying true difference in group means. Should be positive.
Numeric value specifying the variance of observations.
Numeric value specifying type-1 error rate.
Numeric value.
# NOT RUN { # Power to detect difference of 0.2 with 100 subjects per group and sigsq = 1 power_2t_equal(n = 100, d = 0.2, sigsq = 1) # }
Run the code above in your browser using DataLab