. power pairedmeans, sddiff(10) altdiff(3)

Performing iteration ...

Estimated sample size for a two-sample paired-means test

Paired t test
Ho: d = d0 versus Ha: d != d0

Study parameters:

alpha = 0.0500
power = 0.8000
delta = 0.3000
d0 = 0.0000
da = 3.0000
sd_d = 10.0000

Estimated sample size:

N = 90

.
. power oneway 2.82 3.89 3.04, varerror(.075) alpha(0.01) npergroup(4)

Estimated power for one-way ANOVA

F test for group effect
Ho: delta = 0 versus Ha: delta != 0

Study parameters:

alpha = 0.0100
N = 12
N per group = 4
delta = 1.6847
N_g = 3
m1 = 2.8200
m2 = 3.8900
m3 = 3.0400
Var_m = 0.2129
Var_e = 0.0750

Estimated power:

power = 0.9298

.
. power twoway 0 0\ 5 5, varerror(100)

Performing iteration ...

Estimated sample size for two-way ANOVA

F test for row effect
Ho: delta = 0 versus Ha: delta != 0

Study parameters:

alpha = 0.0500
power = 0.8000
delta = 0.2500
N_r = 2
N_c = 2
means = <matrix>
Var_r = 6.2500
Var_e = 100.0000

Estimated sample sizes:

N = 128
N per cell = 32

.
. power twoway 0 0\ 0 5, varerror(100) factor(rowcol)

Performing iteration ...

Estimated sample size for two-way ANOVA

F test for row-by-column effect
Ho: delta = 0 versus Ha: delta != 0

Study parameters:

alpha = 0.0500
power = 0.8000
delta = 0.1250
N_r = 2
N_c = 2
means = <matrix>
Var_rc = 1.5625
Var_e = 100.0000

Estimated sample sizes:

N = 508
N per cell = 127

. exit, clear