Learn R Programming

httk (version 1.8)

estimate_hematocrit: Predict hematocrit using smoothing spline.

Description

Using precalculated smoothing splines on NHANES log hematocrit vs. age in months (and KDE residuals) by gender and race/ethnicity, generate hematocrit values for individuals specified by age, gender, and race/ethnicity.

Usage

estimate_hematocrit(hcttmp_dt)

Arguments

hcttmp_dt

A data.table with columns age_years, age_months, gender, reth.

Value

The same data.table with a hematocrit column added.

References

Ring, Caroline L., et al. "Identifying populations sensitive to environmental chemicals by simulating toxicokinetic variability." Environment International 106 (2017): 105-118.