BookmarkSubscribeRSS Feed
sossolafrip
Calcite | Level 5

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).

1 REPLY 1
greveam
Quartz | Level 8

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

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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