SAS Proc POWER examples

Comparison of two independent groups:

proc power;
twosamplemeans test=diff
groupmeans = 0 | .2
stddev = 1
npergroup = .
power = .8;
run;

Comparison of dependent data (paired)

proc power;
pairedmeans test=diff
meandiff = .2
corr = 0.5
stddev = 1
npairs = .
power = .8;
run;

Comparison of proportions

proc power;
twosamplefreq test=pchi
groupproportions = (.65 .70)
nullproportiondiff = 0
power = .80
npergroup =.;
run;

Leave a Reply