hd_nhanes: hd_nhanes

View source: R/hd_nhanes.R

hd_nhanesR Documentation

hd_nhanes

Description

Train HD algorithm in NHANES III and project into NHANES IV.

Usage

hd_nhanes(biomarkers)

Arguments

biomarkers

A character vector indicating the names of the biomarkers included in the HD algorithm.

Details

Training HD algorithm using the NHANES III (1988 - 1994) and projecting into NHANES IV (1999 - 2018) dataset. For this function, NHANES III included men and women who are between the ages of 20 and 30, and have observe biomarker data within clinically acceptable distributions.

Value

An object of class "hd". This object is a list with two elements (data and fit). The dataset can be drawn by typing 'data'. The model can be drawn by typing 'fit'.

Examples

#HD using NHANES
hd = hd_nhanes(biomarkers=c("albumin","lymph","mcv","glucose","rdw","creat","lncrp","alp","wbc"))

#Extract HD dataset
data = hd$data



dayoonkwon/BioAge documentation built on Oct. 11, 2023, 1:33 a.m.