PHREG, different baseline survival

Reply
Super Contributor
Posts: 303

PHREG, different baseline survival

Why do I have different survival estimate when I use this codes:

Both codes gives the same :Analysis of Maximum Likelihood Estimates.

Why are survival estimates different. I thought it will be the same


A)

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;


B)

where AgeD = Age- Overall Mean Age


data Pattern;

AgeD=0;

output;

run;

ods trace on /listing;

ods output ParameterEstimates=CPHH;

proc phreg data=new ;

model monset*obs(0)= ageD;

baseline covariates=Pattern out=survs survival= survival;

run;

ods trace off;

Super User
Posts: 19,874

Re: PHREG, different baseline survival

Posted in reply to desireatem

Are you saying the survival function is different or the survival estimates?

You're also requesting the baseline for different scenarios,

1) When age=0

2) when age=Mean age.

Super Contributor
Posts: 303

Re: PHREG, different baseline survival

different survival estimates

Super Contributor
Posts: 303

Re: PHREG, different baseline survival

Posted in reply to desireatem

Yes I am getting different survival estimates, I was expecting the same. Can anyone tell me what is wrong?

Ask a Question
Discussion stats
  • 3 replies
  • 194 views
  • 0 likes
  • 2 in conversation