Hi there
I am carrying out a matched cohort study, where each exposed individual is individually matched (on age, sex GP practice and calendar time) to up to 10 unexposed individuals. The matched sets are identified by the variable setid. I am using a stratified cox model [i.e. stcox exposed, strata(setid)].
Does anybody know whether STATA terminates follow-up among members of a matched set once one member is no longer under observation? So does STATA count events among the unexposed if they occur AFTER the exposed case is censored?
I get identical results when I manually censor the unexposed individuals on the date the exposed individual gets censored (i.e. I change their exit date), compared to when I don't manually censor them. However, the number of events and person time the models say they are using is different. The output is below for both scenarios.
Thanks in advance for your help.
Best wishes
Harriet
-------------------------------------------------------------------------------------------------
With unexposed individuals manually censored when exposed is censored:
Failure _d: dementia==1
Analysis time _t: (doexit-origin)/365.25
Origin: time doentry
Enter on or after: time doentry
Exit on or before: time doexit
ID variable: id
Iteration 0: Log likelihood = -5123.2261
Iteration 1: Log likelihood = -5123.2157
Iteration 2: Log likelihood = -5123.2157
Refining estimates:
Iteration 0: Log likelihood = -5123.2157
Stratified Cox regression with no ties
Strata variable: setid
No. of subjects = 121,369 Number of obs = 121,369
No. of failures = 2,534
Time at risk = 464,617.632
LR chi2(1) = 0.02
Log likelihood = -5123.2157 Prob > chi2 = 0.8850
_t Haz. ratio Std. err. z P>z [95% conf. interval]
exposed 1.008399 .0582552 0.14 0.885 .900448 1.129293
-----------------------------------
Using all available data:
Failure _d: dementia==1
Analysis time _t: (doexit-origin)/365.25
Origin: time doentry
Enter on or after: time doentry
Exit on or before: time doexit
ID variable: id
Iteration 0: Log likelihood = -5123.2261
Iteration 1: Log likelihood = -5123.2157
Iteration 2: Log likelihood = -5123.2157
Refining estimates:
Iteration 0: Log likelihood = -5123.2157
Stratified Cox regression with no ties
Strata variable: setid
No. of subjects = 121,369 Number of obs = 121,369
No. of failures = 2,534
Time at risk = 464,617.632
LR chi2(1) = 0.02
Log likelihood = -5123.2157 Prob > chi2 = 0.8850
_t Haz. ratio Std. err. z P>z [95% conf. interval]
exposed 1.008399 .0582552 0.14 0.885 .900448 1.129293
I am carrying out a matched cohort study, where each exposed individual is individually matched (on age, sex GP practice and calendar time) to up to 10 unexposed individuals. The matched sets are identified by the variable setid. I am using a stratified cox model [i.e. stcox exposed, strata(setid)].
Does anybody know whether STATA terminates follow-up among members of a matched set once one member is no longer under observation? So does STATA count events among the unexposed if they occur AFTER the exposed case is censored?
I get identical results when I manually censor the unexposed individuals on the date the exposed individual gets censored (i.e. I change their exit date), compared to when I don't manually censor them. However, the number of events and person time the models say they are using is different. The output is below for both scenarios.
Thanks in advance for your help.
Best wishes
Harriet
-------------------------------------------------------------------------------------------------
With unexposed individuals manually censored when exposed is censored:
Failure _d: dementia==1
Analysis time _t: (doexit-origin)/365.25
Origin: time doentry
Enter on or after: time doentry
Exit on or before: time doexit
ID variable: id
Iteration 0: Log likelihood = -5123.2261
Iteration 1: Log likelihood = -5123.2157
Iteration 2: Log likelihood = -5123.2157
Refining estimates:
Iteration 0: Log likelihood = -5123.2157
Stratified Cox regression with no ties
Strata variable: setid
No. of subjects = 121,369 Number of obs = 121,369
No. of failures = 2,534
Time at risk = 464,617.632
LR chi2(1) = 0.02
Log likelihood = -5123.2157 Prob > chi2 = 0.8850
_t Haz. ratio Std. err. z P>z [95% conf. interval]
exposed 1.008399 .0582552 0.14 0.885 .900448 1.129293
-----------------------------------
Using all available data:
Failure _d: dementia==1
Analysis time _t: (doexit-origin)/365.25
Origin: time doentry
Enter on or after: time doentry
Exit on or before: time doexit
ID variable: id
Iteration 0: Log likelihood = -5123.2261
Iteration 1: Log likelihood = -5123.2157
Iteration 2: Log likelihood = -5123.2157
Refining estimates:
Iteration 0: Log likelihood = -5123.2157
Stratified Cox regression with no ties
Strata variable: setid
No. of subjects = 121,369 Number of obs = 121,369
No. of failures = 2,534
Time at risk = 464,617.632
LR chi2(1) = 0.02
Log likelihood = -5123.2157 Prob > chi2 = 0.8850
_t Haz. ratio Std. err. z P>z [95% conf. interval]
exposed 1.008399 .0582552 0.14 0.885 .900448 1.129293
Comment