project: Project from a training dataset into a validation dataset...

Description Usage Arguments Value Examples

Description

Project from a training dataset into a validation dataset using kdm or hd algorithms.

Usage

1
project(training_data, projection_data, method = "hd", biomarkers, ...)

Arguments

training_data

The dataset for calculating biological age or hd.

projection_data

The dataset for projecting biological age or hd into.

method

A character variable of either 'hd' or 'kdm' to identify the

biomarkers

A character vector indicating the names of the variables for the biomarkers to use in calculating biological age.

filter

a list with biomarker names that identifies any restrictions in training data. See vignette or data description for example of use.

Value

An object of class 'kdm' or 'hd'. This object is a list with two elements (data and fit), and two methods (extract_data and extract_fit). Data is limited to the "projection" dataset. Fit is calculate from "training" dataset.

Examples

1
2
3
4
5
#(not run)
#Train biological age parameters
ndata = project(training_data=nhanes,projection_data=holdout,
                agevar='age',
                biomarkers=c('sysbp','totchol','bun','cmv','mcv'))

bjb40/bioage documentation built on May 20, 2019, 3:05 p.m.