This function imputes the participant and contact data in a survey()
object. You can impute these values yourself with
impute_participant_ages() and impute_contact_ages(). We recommend
imputing before processing ages with survey_process_ages().
Arguments
- survey
A survey object.
- missing_participant_age
if set to "mean" (default), people whose ages are given as a range (in columns named "..._est_min" and "..._est_max") but not exactly (in a column named "..._exact") will have their age set to the mid-point of the range; if set to "sample", the age will be sampled from the range; if set to "missing", age ranges will be treated as missing
- missing_contact_age
if set to "mean" (default), contacts whose ages are given as a range (in columns named "..._est_min" and "..._est_max") but not exactly (in a column named "..._exact") will have their age set to the mid-point of the range; if set to "sample", the age will be sampled from the range; if set to "missing", age ranges will be treated as missing