Getting Started Example 1 for PROC GLMPOWER
/****************************************************************/
/* S A S S A M P L E L I B R A R Y */
/* */
/* NAME: gmpgs1 */
/* TITLE: Getting Started Example 1 for PROC GLMPOWER */
/* (Simple Two-Way ANOVA) */
/* PRODUCT: STAT */
/* SYSTEM: ALL */
/* KEYS: power analysis */
/* sample size */
/* graphs */
/* general linear models */
/* analysis of variance */
/* PROCS: GLMPOWER */
/* DATA: */
/* */
/* SUPPORT: John Castelloe */
/* REF: */
/* MISC: Graphs produced by ODS Graphics in PROC GLMPOWER */
/* require a style that distinguishes curves based */
/* on a combination of color, line style, and symbol */
/* marker. Styles that are well-suited for use in */
/* PROC GLMPOWER include: STATISTICAL, ANALYSIS, */
/* DEFAULT, LISTING, and HTMLBLUECML. */
/****************************************************************/
data Exemplary;
do Variety = 1 to 2;
do Exposure = 1 to 3;
input Height @@;
output;
end;
end;
datalines;
14 16 21
10 15 16
;
proc glmpower data=Exemplary;
class Variety Exposure;
model Height = Variety | Exposure;
power
stddev = 5
ntotal = 60
power = .;
run;
*
ods listing style=htmlbluecml;
ods graphics on;
proc glmpower data=Exemplary;
class Variety Exposure;
model Height = Variety | Exposure;
power
stddev = 4 6.5
ntotal = 60
power = .;
plot x=n min=30 max=90;
run;
ods graphics off;