Learn R Programming

httk (version 1.6)

spline_heightweight: Smoothing splines for log height vs. age and log body weight vs. age, along with 2-D KDE residuals, by race and gender.

Description

#'Smoothing splines and KDE fits to joint distribution of height and weight residuals pre-calculated from NHANES height, weight, and age data by race/ethnicity and gender.

Usage

spline_heightweight

Arguments

Format

A data.table with 6 variables:

g

Gender: Male or Female

r

Race/ethnicity: Mexican American, Other Hispanic, Non-Hispanic White, Non-Hispanic Black, Other

height_spline

A list of smooth.spline objects, each giving a smoothed relationship between log height in cm and age in months

weight_spline

A list of smooth.spline objects, each giving a smoothed relationship between log body weight in kg and age in months

hw_kde

A list of kde objects; each is a 2-D KDE of the distribution of log height and log body weight residuals about the smoothing splines.