BookmarkSubscribeRSS Feed
_user
Calcite | Level 5
My requirement is get  add N, number of events and median for the Univariate table that I am working on ? 
 
do you which option would give me Median , N and number of events ? 
 
 My  code looks like this below 
 
    ODS listing close;
    Ods output          ParameterEstimates= PE  modelanova = Anova ;
 
    proc phreg data = compl  ;
        class  Sex  (ref= 1) ;
        model AVAL*ACENFLN(1) = Sex / risklimits  ;
*        baseline  out =   mean survival = survival ;
    run;
  
    ODS output close;
 
Thanks 
2 REPLIES 2
Reeza
Super User

See this macro that I use sometimes, but its based on PROC LIFETEST. 

https://gist.github.com/statgeek/d3bce2a9e2ef0523db9d

 

  You’re trying to do something similar but with PROC PHREG. The table names can be found and captured using the following method:

https://blogs.sas.com/content/iml/2015/09/08/ods-table-names.html

 

 

_user
Calcite | Level 5

Hello Reeza , 

Yes I did out all the datasets and tried to look into them , but neither I was able find in the tables that come out of ODS TRACE / OFF  I also tried BASELINE =    but was not able to find MEDIAN  value able to capture N , number of events from Censoredsummary  = 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 2 replies
  • 1512 views
  • 0 likes
  • 2 in conversation