Syntax: GLMPOWER Procedure

The following statements are available in PROC GLMPOWER:

PROC GLMPOWER <options> ;
BY variables ;
CLASS variables ;
CONTRAST ’label’ effect values <...effect values> </ options> ;
MODEL dependents = independents ;
PLOT <plot-options> </ graph-options> ;
POWER <options> ;
WEIGHT variable ;

The PROC GLMPOWER statement, the MODEL statement, and the POWER statement are required. If your model contains classification effects, the classification variables must be listed in a CLASS statement, and the CLASS statement must appear before the MODEL statement. In addition, CONTRAST and POWER statements must appear after the MODEL statement. PLOT statements must appear after the POWER statement that defines the analysis for the plot.

You can use multiple CONTRAST, POWER, and PLOT statements. Each CONTRAST statement defines a separate contrast. Each POWER statement produces a separate analysis and uses the information contained in the CLASS, MODEL, WEIGHT, and all CONTRAST statements. Each PLOT statement refers to the previous POWER statement and generates a separate graph (or set of graphs).

Table 43.3 summarizes the basic functions of each statement in PROC GLMPOWER. The syntax of each statement in Table 43.3 is described in the following pages.

Table 43.3 Statements in the GLMPOWER Procedure

Statement

Description

PROC GLMPOWER

Invokes procedure and specifies exemplary data set

BY

Specifies variables to define subgroups for the analysis

CLASS

Declares classification variables

CONTRAST

Defines linear tests of model parameters

MODEL

Defines model and specifies dependent variable(s) used for cell means scenarios

PLOT

Displays graphs for preceding POWER statement

POWER

Identifies parameter to solve for and provides one or more scenarios for values of other analysis parameters

WEIGHT

Specifies variable for allocating sample sizes to different subject profiles