contact_age_distribution: Extract the empirical age distribution of contacts from a survey
Description
Returns a data.frame of (age, proportion) pairs representing how
contact ages are distributed in the survey. This can be passed to
assign_age_groups() as estimated_contact_age to impute ages
from ranges using this distribution rather than uniform sampling.
Usage
contact_age_distribution(survey)
Value
a data.frame with columns age (integer) and proportion (numeric,
summing to 1)