Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
The PHREG Procedure

Syntax

The following statements are available in PROC PHREG.

PROC PHREG < options > ;
MODEL response < *censor(list) > = variables < /options > ;
< programming statements >
STRATA variable < (list) > < ...variable < (list) > > < /option > ;
< label: > TEST equation1 < ,..., equationk > < /option > ;
FREQ variable ;
ID variables ;
OUTPUT < OUT=SAS-data-set >
                    < keyword=name... keyword=name > < /options > ;
BASELINE < OUT=SAS-data-set >
                    < COVARIATES=SAS-data-set >
                    < keyword=name... keyword=name > < /options > ;
BY variables ;

The PROC PHREG statement invokes the procedure. All other statements except the MODEL statement are optional. Items within < > are optional, and there is no required order for the statements following the PROC PHREG statement. The MODEL statement specifies the variables that define the survival time, the censoring variable, and the explanatory variables. The STRATA statement specifies a variable or set of variables defining the strata for the analysis. The TEST statement contains equations that define linear hypotheses concerning the model parameters. The ID statement specifies the variables with values that are used to label the observations in the OUTPUT data set. The OUTPUT and BASELINE statements create data sets containing the survival estimates. DATA step programming statements can be included to create time-dependent explanatory variables.


PROC PHREG Statement

BASELINE Statement

BY Statement

FREQ Statement

ID Statement

MODEL Statement

OUTPUT Statement

Programming Statements

STRATA Statement

TEST Statement

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.