epiforecasts / socialmixr

R package for deriving social mixing matrices from survey data.
http://epiforecasts.io/socialmixr/
Other
38 stars 11 forks source link

Average age vs exact age of participants in clean.survey() #135

Closed lwillem closed 1 month ago

lwillem commented 2 months ago

When a user provides age ranges for participants, the average of the given range is currently imputed as the "exact age" in the 'clean.survey()' function. It would be clearer if only the ranges were maintained (similar to the contact ages). However, the absence of a "part_age" field in the survey object could lead to unexpected issues.