get_formulas: Regression Tree Formula

Description Usage Arguments Value Examples

Description

The function generates the formula to be used in regression trees model.

Usage

1
get_formulas(name, var_names)

Arguments

name

a character to indicate the regression coefficients from which complex trait. It should match the trait name used in the other analyses.

var_names

the names of the variables to be included.

Value

a formula specifying the response variable (univariate regression coefficients from target population) and the predictors are used to tune the weights in boosted regression trees model.

Examples

1
2
3
4
data(annotation_data)
var_names <- colnames(annotation_data)
formulas = get_formulas(name = 'BMI', var_names = var_names[2:5])
print(formulas)

GMELab/GraBLD documentation built on May 4, 2019, 3:20 p.m.