gen_serum_creatinine: Generate serum creatinine values for a virtual population.

View source: R/gen_serum_creatinine.R

gen_serum_creatinineR Documentation

Generate serum creatinine values for a virtual population.

Description

Predict serum creatinine 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.

Usage

gen_serum_creatinine(gender, reth, age_years, age_months, nhanes_mec_svy)

Arguments

gender

Gender for which to generate serum creatinine values ("Male" or "Female")

reth

NHANES race/ethnicity category for which to generate serum creatinine values ("Mexican American", "Non-Hispanic Black", "Non-Hispanic White", "Other", or "Other Hispanic")

age_years

Vector of ages in years for individuals for whom to generate serum creatinine values (corresponding to age_months)

age_months

vector of ages in months for individuals for whom to generate serum creatinine values (between 0-959 months)

nhanes_mec_svy

surveydesign object created from mecdt using svydesign (this is done in httkpop_generate)

Details

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.

Value

A vector of numeric generated serum creatinine values (mg/dL).

Author(s)

Caroline Ring

References

\insertRef

ring2017identifyinghttk


httk documentation built on Sept. 11, 2024, 9:32 p.m.