(no title)
pacbard | 1 year ago
The blog post list this as the original Stata code:
> replace event`i’ = 1 if delta_mct`i’ != 0 | spouse_delta_mct`i’ != 0
and this as the correct one:
> replace event`i’ = 1 if (delta_mct`i’ != 0 | spouse_delta_mct`i’ != 0) & delta_mct`i’ != . & spouse_delta_mct`i’ != .
It looks like the authors didn't properly handle missing values in Stata, leading to marking people with missing health information being marked as being "severely ill" instead of being excluded from the analysis.
It's an unfortunate mistake, but it happens.
p51-remorse|1 year ago
(Honest question)
topper-123|1 year ago
tripletao|1 year ago
You're saying the original analysis was wrong due to a coding error. I believe that's also true, but that's not what they were discussing. The variable names are inscrutable, but the article text also seems to imply that line (mis)codes divorce, not severe illness:
> People who left the study were actually miscoded as getting divorced.
So they actually found a correlation between severe illness and leaving the study. That's perhaps intuitive, if those people were too busy managing their illness to respond.