07-01-2016 01:35 PM
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!
07-01-2016 05:44 PM
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.