helper to prep the ego dataset
get_ego_df.RdShared by prep_dhs_sib_histories, prep_nrsim_sib_histories and prep_mics_sib_histories.
Arguments
- df
the survey dataset
- resp.attrib
vector with respondent attribute columns (see prep_dhs_sib_histories)
- verbose
- weight.scale
divide the
wwgtcolumn by this number. DHS weights are published multiplied by 1,000,000, so1e6recovers weights that average 1; surveys whose weights are already normalized (MICS, and simulated data) should pass1. See prep_dhs_sib_histories