Comment

Comment by pacbard

No, it's a coding error that lead to a wacky subsample being used for their treatment variable.

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.

parent pacbard 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton