Programming the statistical procedures from SAS

Survivor Function Estimates for Specific Covariate Values using PHREG

Reply
Regular Contributor
Posts: 187

Survivor Function Estimates for Specific Covariate Values using PHREG

Hi,

I was trying to get survivor function estimates for test datasets, based on the trained model in PHREG. But I am having difficulty in interpretation of estimate for a particular subj.

The data is of the form:

data cp_ex;

     input

     subj    start   stop    event        x;

     datalines;

     1        0       1        0         7.9

     1        1       2        0         6.1

     1        2       3        1         5.5

     2        0       1        0         7.2

     2        1       2        0         6.7

     2        2       3        0         4.5

     2        3       4        0         4.1

     2        4       5        1         3.9

run;

And modeled using:

proc phreg data=cp_ex covs(aggregate) covm;

     model (start,stop)*event(0) = x / ties=efron;

     id subj;

     baseline covariates=covars OUT=out1 survival=survival cumhaz=cumhaz / method=CH;

     output out=out3 survival=s;

     run;

Where covars dataset contains somes values for x.

I am interested in event being occured survival estimate. for some new subj. But I have survival estimate values for say all 10 time period. But I am interested in event probability as whole for a particular subj.

How do I get that?

Ask a Question
Discussion stats
  • 0 replies
  • 94 views
  • 0 likes
  • 1 in conversation