Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
The LIFEREG Procedure

Syntax

The following statements are available in PROC LIFEREG.

PROC LIFEREG < options > ;
MODEL response=independents < / options > ;
BY variables ;
CLASS variables ;
OUTPUT < OUT=SAS-data-set >
      keyword=name < ... keyword=name >
      < options > ;
WEIGHT variable ;

The PROC LIFEREG statement invokes the procedure. The MODEL statement is required and specifies the variables used in the regression part of the model as well as the distribution used for the error, or random, component of the model. Only main effects can be specified in the MODEL statements. Interaction terms involving CLASS variables, allowed in the GLM procedure, are not available in PROC LIFEREG. Initial values can be specified in the MODEL statement. If no initial values are specified, the starting estimates are obtained by ordinary least squares. The CLASS statement determines which explanatory variables are treated as categorical. The WEIGHT statement identifies a variable with values that are used to weight the observations. Observations with zero or negative weights are not used to fit the model, although predicted values can be computed for them. The OUTPUT statement creates an output data set containing predicted values and residuals.


PROC LIFEREG Statement

BY Statement

CLASS Statement

MODEL Statement

OUTPUT Statement

WEIGHT Statement

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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