View source: R/phenoage_nhanes.R
phenoage_nhanes | R Documentation |
Train Phenotypic Age algorithm in NHANES III and project into NHANES IV.
phenoage_nhanes(biomarkers)
biomarkers |
A character vector indicating the names of the biomarkers included in the Phenotypic Age algorithm. |
Training Phenotypic Age algorithm using the NHANES III and projecting into NHANES IV dataset.
An object of class "phenoage". 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'.
#Phenoage using NHANES
phenoage = phenoage_nhanes(biomarkers=c("albumin_gL","lymph","mcv","glucose_mmol",
"rdw","creat_umol","lncrp","alp","wbc"))
#Extract phenoage dataset
data = phenoage$data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.