Last chance! 50% off unlimited learning
Sale ends in
Predict hematocrit from age using smoothing splines and kernel density estimates of residual variability fitted to NHANES data, for a given combination of gender and NHANES race/ethnicity category.
estimate_hematocrit(gender, reth, age_years, age_months, nhanes_mec_svy)
A vector of numeric generated hematocrit values (blood percentage red blood cells by volume).
Gender for which to generate hematocrit values ("Male" or "Female")
NHANES race/ethnicity category for which to generate serum creatinine values ("Mexican American", "Non-Hispanic Black", "Non-Hispanic White", "Other", or "Other Hispanic")
Vector of ages in years for individuals for whom to generate hematocrit values (corresponding to age_months)
vector of ages in months for individuals for whom to generate hematocrit values (between 0-959 months)
surveydesign
object created from
mecdt
using svydesign
(this is done in
httkpop_generate
)
Caroline Ring
This function should usually not be called directly by the user. It is used by
httkpop_generate()
in "virtual-individuals" mode, after drawing gender,
NHANES race/ethnicity category, and age from their NHANES
proportions/distributions.
ring2017identifyinghttk