Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- SAS Procedures
- /
- Simulating survival data

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

10-28-2015 08:31 AM

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.

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

10-28-2015 11:25 AM

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.

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Rick_SAS

10-28-2015 03:33 PM

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".

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

10-29-2015 11:46 AM

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?

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Rick_SAS

10-29-2015 02:04 PM

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.