Chapter Contents |
Previous |
Next |

The LIFEREG Procedure |

The following examples demonstrate how you can use the LIFEREG procedure to fit a parametric model to failure time data.

Suppose you have a response variable y that represents failure time, censor is a binary variable indicating censored values, and x1 and x2 are two linearly independent variables. The following statements perform a typical accelerated failure time model analysis. Note that no higher-order effects such as interactions are allowed in the covariables list.

proc lifereg; model y*censor(0) = x1 x2; run;

PROC LIFEREG can operate on interval-censored data. The model syntax for specifying the censored interval is

proc lifereg; model (begin, end) = x1 x2; run;

You can also express the response with *events/trials* syntax, as
illustrated in the following statements:

proc lifereg; model r/n=x1 x2; run;

The variable n represents the number of trials and the variable r represents the number of events.

Chapter Contents |
Previous |
Next |
Top |

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