Programming the statistical procedures from SAS

proc lifetest

Reply
Contributor
Posts: 66

proc lifetest

Hi,

I am trying to run proc lifetest to see the median time to event and have a question about adding covariates like age, gender, race. I think the TEST statement is for continuous variables, but not sure where to put dummy variables like gender and categorical variables like race.

proc lifetest data=mydata;

     strata medgroup;

     time timeM*surgery(0);

     test age;

run;

The other question is about the analysis result. Since only 10% of study sample have event (surgery), there is no result shown 25%, 50%(median), 75% of time to event. I plan to see median time to event, but now did not get anything. I am not sure how to solve this problem or it is just my data limitation.

Could you give me some hints about the above two questions? Thanks so much!

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