Turn on suggestions

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

Showing results for

- Home
- /
- Programming
- /
- SAS Procedures
- /
- How to calculate 10 year survival probability with proc phreg

Options

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

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Posted 12-18-2017 05:24 PM
(2296 views)

Hello all,

For my school project I'm developing a risk prediction model for overall mortality. The overall equation to do so is: 1 - 10yearsurival probability^(exp(regression coefficient x1.. x2.. x3.. x3). Where the 10 year survival probability has to be calculated with proc phreg.

The syntax for my model is:

** proc phreg data=a.predict;**

**model time*died15(0)= age cur former mod med crp ;**

**run;**

I'm not sure how to calculate the 10 year surival probability.. I know I should use the BASELINE statement and that I have to calculate it for my covariates set to zero?

I hope you can help me out :)!

Maartje

** **

5 REPLIES 5

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

I don’t know if you necessarily need a BASELINE statement, does the output dataset not have the survival estimates at various points in time? You can definitely use BASELINE to specify the values you’re interested in as well.

Its not 0 though, it’s usually the mean for continuous variables and the reference level for categorical variables.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Ohh thanks for your response. I didnt specify the reference levels for my categorical variables and thats why I didnt get the survival probability.

I still have a small question about filling in the equation for the 10-year risk prediction for mortality. Now I've calculated the survival probability with the baseline statement where the mean for continuous variables and the reference level for categorical variables was used. If I want to calculate the 10 year risk for mortality for a person of age 70 and the mean age used to calculate the baseline survival probability was 60, should i use the difference in age between the mean used for baseline survival calculations and the actual age (in this case age = 10? Or should i just fill in the actual age of this person?

Thanks again 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

The model uses the actual age so you would use that.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Hmm, thanks and sorry to bother u again.. But my predicted 10 year mortality risks are really high (also compared to the number of events) and does not vary much in between participants and I can't seem to find out why..

Should I calculate the baseline survival probability for ALL variables available in the data set? Now Ive calculated the baseline survival probability with the predictors which are in the end model.

Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

@Maartje wrote:

Hmm, thanks and sorry to bother u again.. But my predicted 10 year mortality risks are really high (also compared to the number of events) and does not vary much in between participants and I can't seem to find out why..

Should I calculate the baseline survival probability for ALL variables available in the data set? Now Ive calculated the baseline survival probability with the predictors which are in the end model.

Thanks!

No, you first build a model with the variables that you think are relevant. Once your model is built you then would look at the 10 year survival. If you N is small, especially for the subgroup analysis you're results will be all over the place.

Are you ready for the spotlight? We're accepting content ideas for **SAS Innovate 2025** to be held May 6-9 in Orlando, FL. The call is **open **until September 25. Read more here about **why** you should contribute and **what is in it** for you!

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.