We fitted the following logistic regression model to generate the adjusted mortality rate:
R Code
expglm <- speedglm(dead ~
age_grp + sex + loinc_decile + rur_urb +
province + education + employ_status +
ab_id_dichot + mar_stat + generation,
family = binomial(), data = clean_data)`
SAS code
model dead(ref='Not Dead')= age_grp sex loinc_decile rur_urb province education employ_status ab_id_dichot mar_stat generation ;
If using synthpop
to create synthetic data: