baseline survival function in the cox model with covariates set to zero ie age3=0

Accepted Solution Solved
Reply
Super Contributor
Posts: 303
Accepted Solution

baseline survival function in the cox model with covariates set to zero ie age3=0

Hi the code below gives the s_(t)=[s_(0)]^esp(beta *Av(age3)).

How do I modify the code to get the baseline survival at age3=0, that is just s_(0).

Below is the code that need to be fixed

ods trace on /listing;

ods output ParameterEstimates=CPHH;

proc phreg data=new ;

model monset*obs(0)= age3;

baseline out=survs survival= survival;

run;

ods trace off;


Accepted Solutions
Solution
‎01-12-2014 11:42 PM
Super Contributor
Posts: 303

Re: baseline survival function in the cox model with covariates set to zero ie age3=0

Posted in reply to desireatem

data Pattern;

Age=0;

output;

run;

ods trace on /listing;

ods output ParameterEstimates=CPHH;

proc phreg data=new ;

model monset*obs(0)= age;

baseline covariates=Pattern out=survs survival= survival;

run;

ods trace off;

View solution in original post


All Replies
Solution
‎01-12-2014 11:42 PM
Super Contributor
Posts: 303

Re: baseline survival function in the cox model with covariates set to zero ie age3=0

Posted in reply to desireatem

data Pattern;

Age=0;

output;

run;

ods trace on /listing;

ods output ParameterEstimates=CPHH;

proc phreg data=new ;

model monset*obs(0)= age;

baseline covariates=Pattern out=survs survival= survival;

run;

ods trace off;

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 198 views
  • 0 likes
  • 1 in conversation