BookmarkSubscribeRSS Feed
ejulianne
Calcite | Level 5

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

1 REPLY 1
Reeza
Super User

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. 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1317 views
  • 0 likes
  • 2 in conversation