BookmarkSubscribeRSS Feed
agiambrone
Calcite | Level 5

Hello!! I have a SAS/STATA question if anyone can help!! SAS considers you at risk for the event just before you have the event, but STATA considers you at risk at the time you have the event - WHY the difference?!?

Ashley

2 REPLIES 2
Doc_Duke
Rhodochrosite | Level 12

Ashley,

It's arbitrary.  The Cox Proportional Hazards Model is based on the assumption that time is a continuous variable and the hazard is a limit as delta-t approaches 0 ( SAS/STAT(R) 12.3 User's Guide ).  However, our ability to measure time is much more granular, so the software developers had to make a choice for the ATRISK table and the Stata and SAS folk made different choices.

If your data are more granular (e.g. time in days for disease survival), the estimates are nearly the same whichever way the developers chose.  If your data are less granular, you have lots of ties and the choice may have some impact on the estimates (an educated guess, I've not done a formal comparison of SAS and Stata).

Doc Muhlbaier

Duke

agiambrone
Calcite | Level 5

Thank you SO much!

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