Learn R Programming

httk (version 1.6)

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.