Programming the statistical procedures from SAS

Survival Analysis Cox PH model number of events/censored subjects for variable categories

Reply
New Contributor
Posts: 4

Survival Analysis Cox PH model number of events/censored subjects for variable categories

Hi,

 

I am doing survival analysis in SAS University using Proc Phreg to obtain a Cox PH model. I have a categorical variable and I simply want the count of number of events/number of censored subjects for each category but instead SAS outputs "Summary of the Number of Event and Censored Values" which gives the Total number of events/censored subjects used to create the model. I want breakdown of events/censored subjects for a specific variable in each category. It is not as easy as just using proc freq because I have 4 other variables in the model with missing values.

 

The reason I want this data is so I can do a trend test.

 

If you have any suggestions that would be so great!

 

Thank you,

 

Erin

Grand Advisor
Posts: 16,878

Re: Survival Analysis Cox PH model number of events/censored subjects for variable categories

If a record has missing values SAS removes the entire record from the model. So if you remove all the records with missing values you can run a proc freq. 

Ask a Question
Discussion stats
  • 1 reply
  • 102 views
  • 0 likes
  • 2 in conversation