The following statements are available in the SURVEYREG procedure:
PROC SURVEYREG
<options> ;
BY
variables ;
CLASS
variables ;
CLUSTER
variables ;
CONTRAST
’label’ effect values <…effect values> </ options> ;
DOMAIN
variables <variable*variable variable*variable*variable …> ;
EFFECT
name = effect-type (variables </ options>) ;
ESTIMATE
<'label'> estimate-specification </ options> ;
LSMEANS
<model-effects> </ options> ;
LSMESTIMATE
model-effect lsmestimate-specification </ options> ;
MODEL
dependent = <effects> </ options> ;
OUTPUT
<keyword<=variable-name> …keyword<=variable-name>> </ option> ;
REPWEIGHTS
variables </ options> ;
SLICE
model-effect </ options> ;
STORE
<OUT=>item-store-name </LABEL='label'> ;
STRATA
variables </ options> ;
TEST
<model-effects> </ options> ;
WEIGHT
variable ;
The PROC SURVEYREG and MODEL statements are required. If your model contains classification effects, you must list the classification variables in a CLASS statement, and the CLASS statement must precede the MODEL statement. If you use a CONTRAST statement or an ESTIMATE statement, the MODEL statement must precede the CONTRAST or ESTIMATE statement.
The rest of this section provides detailed syntax information for each of the preceding statements, except the EFFECT, ESTIMATE, LSMEANS, LSMESTIMATE, SLICE, STORE, and TEST statements. These statements are also available in many other procedures. Summary descriptions of functionality and syntax for these statements are shown in this chapter, and full documentation about them is available in Chapter 19: Shared Concepts and Topics.
The CLASS, CLUSTER, CONTRAST, EFFECT, ESTIMATE, LSMEANS, LSMESTIMATE, REPWEIGHTS, SLICE, STRATA, TEST statements can appear multiple times. You should use only one of each of the following statements: MODEL, WEIGHT, STORE, and OUTPUT.
The syntax descriptions begin with the PROC SURVEYREG statement; the remaining statements are covered in alphabetical order.