BookmarkSubscribeRSS Feed
actuary86
Calcite | Level 5

Hi I am a beginner in SAS. I have data regarding whether people withdraw or not based on issue age and tax type. From what I understand PROC LIFETEST will not take into account all the other covariates.

For this reason I used PROC LIFEREG with a Weibull distrbution. I have the fitted beta parameters as well as the scale, shape for the weibull but I am not sure how to get at the hazard function for each row of data? I am interested in getting the conditional probability of failure if you have survived up to that point.  I tried

hazard function = scale*exp(-xbeta)*(shape)^(scale-1) 

but the function does not seem to vary much with age. Any help?

1 REPLY 1
SteveDenham
Jade | Level 19

If scale dominates shape, and shape is greater than 1, that function will be very flat, and look much like shape to the scale power for all values of age.  You might consider rescaling age to a "smaller" number that still captures the full variability, but such that xbeta*age (which is what should be exponentiated, I think), and scale are of the same order of magnitude.

Steve Denham

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 958 views
  • 0 likes
  • 2 in conversation