baseline Survival function for both events and censored observation

Reply
Super Contributor
Posts: 297

baseline Survival function for both events and censored observation

The following code gives me the estimated survival function for just the events, How can I get the baseline survival for both events and censored observation.

I need the estimated baseline survival'

proc phreg data=ph;

model zz*status(0)=x1/RL TIES=EFRON;

baseline out=survs survival=s;

run;

Super User
Posts: 17,868

Re: baseline Survival function for both events and censored observation

I think both censored and event have the same baseline estimates based on the cox model.

The baseline function just happens to give estimates at event times, rather than censored times.

You can specify the timelist option if you want the estimate for specific time intervals instead of event times.

Check the documentation on how to specify the time list for baseline.

Super Contributor
Posts: 297

Re: baseline Survival function for both events and censored observation

I wish to have the survival probability of both censored and events as Stata does

Super User
Posts: 17,868

Re: baseline Survival function for both events and censored observation

I'm fairly certain that the baseline should be the same for censored and uncensored.

Can you provide sample stata code that you want converted or preferably a link to their documentation that show how it is calculated.

Super Contributor
Posts: 297

Re: baseline Survival function for both events and censored observation

I just read the stata document, ignore my previous statement

Ask a Question
Discussion stats
  • 4 replies
  • 206 views
  • 0 likes
  • 2 in conversation