Skip to contents

Usage

get_ego_df(df, resp.attrib, verbose = FALSE, weight.scale = 1e+06)

Arguments

df

the survey dataset

resp.attrib

vector with respondent attribute columns (see prep_dhs_sib_histories)

verbose

see prep_dhs_sib_histories

weight.scale

divide the wwgt column by this number. DHS weights are published multiplied by 1,000,000, so 1e6 recovers weights that average 1; surveys whose weights are already normalized (MICS, and simulated data) should pass 1. See prep_dhs_sib_histories

Value

a prepped ego dataset, used by the prep_*_sib_histories() functions