Syntax: SURVEYPHREG Procedure

The following statements are available in the SURVEYPHREG procedure. Items within < > are optional.

BY variables ;
CLASS variable <(options)> <…variable <(options)>> </ options> ;
CLUSTER variables ;
DOMAIN variables <variable*variable variable*variable*variable …> ;
ESTIMATE <'label'> estimate-specification </ options> ;
FREQ variable ;
LSMEANS <model-effects> </ options> ;
LSMESTIMATE model-effect lsmestimate-specification </ options> ;
MODEL response <*censor(list)> = effects </ options> ;
NLOPTIONS <options> ;
OUTPUT <OUT=SAS-data-set> <keyword=name …keyword=name> </ options> ;
Programming statements ;
REPWEIGHTS variables </ options> ;
SLICE model-effect </ options> ;
STRATA variables </ option> ;
STORE <OUT=>item-store-name </ LABEL='label'> ;
TEST <model-effects> </ options> ;
WEIGHT variable ;

The PROC SURVEYPHREG and MODEL statements are required. The CLASS statement, if present, must precede the MODEL statement.

The MODEL statement specifies the analysis model. The CLASS statement specifies the categorical variables. The STRATA statement lists the variables that form the strata in a stratified sample design. The CLUSTER statement specifies cluster identification variables in a clustered sample design. The WEIGHT statement names the sampling weight variable. The NLOPTIONS statement specifies the optimization techniques. The REPWEIGHTS statement names replicate weight variables for BRR or jackknife variance estimation. The DOMAIN statement lists the variables that define domains for subpopulation analysis. The BY statement requests completely separate analyses of groups defined by the BY variables.

The rest of this section provides detailed syntax information for each statement, beginning with the PROC SURVEYPHREG statement. The remaining statements are covered in alphabetical order.

The ESTIMATE, LSMEANS, LSMESTIMATE, SLICE, STORE, and TEST statements are also available in other procedures. Summary descriptions of functionality and syntax for these statements are provided in this chapter, and you can find full documentation about them in Chapter 19: Shared Concepts and Topics.