Hello ! I’m wondering about the proc lifetest. I’m studying the risk of having a first child using answers using retrospective data from a survey. My « basic » time event analysis would be :
proc lifetest;
time duree*event(0);
run;
with « duree » being the time variable and « event » being the censoring one, and now I want to do the time event analysis while considering that women are exposed to the risk of having a first child only between ages 25 and 35 (it’s just a question to practice our understanding of time event analysis in class, so it doesn’t have any « real » study implication).
I actually know what the code would be using another software (stata, where it would be : Stset duree, failure (event) origin (time 25) exist (time 35)), but I haven’t found a way to do the same thing on SAS.
Are there any options in the proc lifetest that can be used in order to make assumptions about when the population is exposed to the risk ?
Thanks in advance ! (And apologies for the potential mistakes, I’m French).
You can use the delayed entry function to restrict comparisons to 25-35 years:
https://support.sas.com/documentation/onlinedoc/stat/ex_code/141/phrcpa1.html
However, when you are using parity as the outcome, you should also account for pertinent competing risks (at least all-cause mortality):
https://support.sas.com/rnd/app/stat/papers/2014/competingrisk2014.pdf
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.
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.