Need to know 3 of the 4 to determine the 4th:
Do We Know? | Measure | Definition |
---|---|---|
?? | Effect Size | Magnitude of difference or association; i.e. (difference in means)/(population standard deviation) = μ1−μ0σ = δσ |
?? | Sample Size | N |
0.05, 0.01 | Type I Error / Significance level | α = probability of rejecting null hypothesis when it is true |
0.9, 0.8 | Power | 1 - β = 1 - Type II error = probability of rejecting null hypothesis when it is false |
Outcome = Continuous measurement, normal distribution
Predictor = Treatment yes/no (treatment vs control group)
Test: two sample T-test, equal variance
Effect Size: difference in means divided by standard deviation of population μtrt−μctrlσ
Null Hypothesis: Difference in means = 0
Alternative Hypothesis: Difference in means ≠ 0
"Given a desired effect size, what sample size gives us enough information to reject the null hypothesis with power 90%, type I error 5%?"
To detect an effect size of 0.33 with power = 0.9 and type I error = 0.05, what sample size would we need? n=194 in each group!
power.t.test(delta = 0.33, sd = 1, sig.level = 0.05, power = 0.9)
Two-sample t test power calculation n = 193.9392 delta = 0.33 sd = 1 sig.level = 0.05 power = 0.9 alternative = two.sidedNOTE: n is number in *each* group
In the R
output below, the effect size is delta/sd = 3.59/1 = 3.59.
power.t.test(n=3, sd=1, sig.level=0.05, power=0.9)
Two-sample t test power calculation n = 3 delta = 3.589209 sd = 1 sig.level = 0.05 power = 0.9 alternative = two.sidedNOTE: n is number in *each* group
Contact me: minnier-[at]-ohsu.edu, datapointier, jminnier
Slides available: bit.ly/aacr-power
Slide code available at: github.com/jminnier/talks-etc
Keyboard shortcuts
↑, ←, Pg Up, k | Go to previous slide |
↓, →, Pg Dn, Space, j | Go to next slide |
Home | Go to first slide |
End | Go to last slide |
Number + Return | Go to specific slide |
b / m / f | Toggle blackout / mirrored / fullscreen mode |
c | Clone slideshow |
p | Toggle presenter mode |
t | Restart the presentation timer |
?, h | Toggle this help |
Esc | Back to slideshow |