BookmarkSubscribeRSS Feed
MFK
Calcite | Level 5 MFK
Calcite | Level 5

Dear all,

 

I want to demonstrate discrete time hazard models with competing risks to my students by simulating survival data with time-dependent covariates. I also want to experiment with different variable selection approaches.

 

Most of the literature on this topic seems to be based on continuous time Cox PH assumptions.

 

Any SAS/IML or DATA STEP code will be much appreciated.

 

Thank you in advance.

MFK

"One page of well written code is more valuable than hundred pages of explanation" Source: Unknown.

4 REPLIES 4
Rick_SAS
SAS Super FREQ

I'm not sure what you mean by a discrete time model. Reference or example? Do you want to use a (Markov) transition matrix to iterate from one time step to the next, or do you have something else in mind?

 

Chapter 12 of Simulating Data with SAS has a section on survival analysis models. As you say, most simulation studies focus on a Cox regression model where the survival times are exponential or Weibull distributed.  Bender, Augustin, and Blettner (2005, p. 1715) discuss "how survival times can be generated to simulate...Cox models ..with any non-zero baseline hazard rates," but they are still using continuous time.

MFK
Calcite | Level 5 MFK
Calcite | Level 5

If you have survival data on a portfolio of loans where some of the loans prepayed, some loans defaulted, some of the loans are current (or censored), but a large proportion of the loans ran their full term. In addition to this you assume that you also have data on time-dependent covariates. Then you can fit a discrete time competing risks (multinomial logistic regression) model to estimate the cause-specific hazard functions.

 

My problem is, I don't have survival data and would like to simulate data and then fit the above model to show that the data generating model can be "extracted".

Rick_SAS
SAS Super FREQ

The reason I suggested that you supply a reference is because a reference will often write down the theoretical assumptions that underlie the statistical model.  When you simulate data, you are pulling a random sample from a specified population model.

 

Do you already know how to simulate the multinomial logistic regression model, which you mentioned in your response, or is that part of the problem?

MFK
Calcite | Level 5 MFK
Calcite | Level 5

Yes, to simulate the multinomial logistic regression model is part of the problem.

 

A reference: Watkins, Vasnev & Gerlach, Multiple Event Incidence and Duration Analysis for Credit Data Incorporating Non-Stochastic Loan Maturity, Journal of Applied Econometrics, 29: 627–648 (2014).

 

Thank you in advance.

SAS INNOVATE 2024

innovate-wordmarks-white-horiz.png

SAS is headed back to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team.

Interested in speaking? Content from our attendees is one of the reasons that makes SAS Innovate such a special event!

Submit your idea!

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 3067 views
  • 0 likes
  • 2 in conversation