HW2

Author

Drew Schaefer

I will be using the NHIS linked mortality data.

The event variable is death, which in this data set is indicated with a 1 for the MORTSTAT variable.

Tentatively, for this analysis I will use death within 5 years of the survey but also the entire survey (just to see what the differences are).

The censoring indicator is whether the event (death) did not take place, which means the MORTSTAT variable has a value of 2.

In this preliminary analysis the grouping variable will be sex (this is dichotomous). In the coming weeks I will decide on something more substantive.

Following mortality patterns, males should have a lower survival probability than females (at least until old age). This is shown to be true in the survival probability graphs.

SEX=1 is male and SEX=2 is female