age_draw_smooth {httk} | R Documentation |
Draws ages from a smoothed distribution for a given gender/race combination
Description
This function should usually not be called directly by the user. It is used by
httkpop_generate()
in "virtual-individuals" mode.
Usage
age_draw_smooth(gender, reth, nsamp, agelim_months, nhanes_mec_svy)
Arguments
gender |
Gender. Either 'Male' or 'Female'. |
reth |
Race/ethnicity. One of 'Mexican American', 'Other Hispanic', 'Non-Hispanic Black', 'Non-Hispanic White', 'Other'. |
nsamp |
Number of ages to draw. |
agelim_months |
Two-element numeric vector giving the minimum and maximum ages in months to include. |
nhanes_mec_svy |
|
Value
A named list with members 'ages_months' and 'ages_years', each
numeric of length nsamp
, giving the sampled ages in months and years.
Author(s)
Caroline Ring
References
Ring CL, Pearce RG, Setzer RW, Wetmore BA, Wambaugh JF (2017). “Identifying populations sensitive to environmental chemicals by simulating toxicokinetic variability.” Environment International, 106, 105–118.