1
$\begingroup$

I am trying to determine the effect of four interventions/exposures upon the acquisition of an infection (the interventions aimed at preventing the infection). I'm using registry data. My analysis time is limited to 4 years as my primary outcome is at 4 years (infection/or not). It is a relatively new registry and so individuals' data have been entered contemporaneously (for those born after the registry started) and other data for which individuals' data commence later, many of whom do not contribute to my analysis as they were older than 4 years of age at inception of the registry.

In STATA I have set out my origin (birth = Time 0), entry (first date entered on registry), and failure (infection).

As acquisition of infection is an absolute failure and my analysis time is age I would expect that numbers at risk of infection should reduce over time. However when I plot a Kaplan-Meier survival curve with an at-risk table, at time 0, 0 individuals are at risk and later individuals become at risk.

Any ideas why this is not the case?
enter image description here

$\endgroup$

1 Answer 1

2
$\begingroup$

Presumably no-one's at risk at time 0 because no-one entered the registry on the day they were born. They only become at risk after their entry date.

(By the way, I usually add scale(365.25) to the stset statement in my Stata code in order to display analysis time in years rather than days.)

$\endgroup$
1
  • 1
    $\begingroup$ +1 I usually add the scale() option too, but when I want to express days as years, I use scale(365.24). This is because there are 24 leap years per century. (I know this is probably just a trivial detail, and 365.25 is very often used.) $\endgroup$
    – boscovich
    Commented Mar 1, 2012 at 10:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.