This function should usually not be called directly by the user. It is used by
httkpop_generate()
in "virtual-individuals" mode.
age_draw_smooth(gender, reth, nsamp, agelim_months, nhanes_mec_svy)
A named list with members 'ages_months' and 'ages_years', each
numeric of length nsamp
, giving the sampled ages in months and years.
Gender. Either 'Male' or 'Female'.
Race/ethnicity. One of 'Mexican American', 'Other Hispanic', 'Non-Hispanic Black', 'Non-Hispanic White', 'Other'.
Number of ages to draw.
Two-element numeric vector giving the minimum and maximum ages in months to include.
surveydesign
object created from
mecdt
using svydesign
(this is done in
httkpop_generate
)
Caroline Ring
ring2017identifyinghttk