Learn R Programming

betaboost (version 1.0.1)

make_mboostform: Building mboost formulas

Description

Transforms 'classic' formula objects (y ~ x1 + s(x2)) to mboost formulas y ~ bols(x1) + bbs(x2).

Usage

make_mboostform(formula, data = NULL)
add_bolsform(formula, data = NULL)

Arguments

formula

formula object describing a model.

data

data set, only necessary in case of "~ ." formulas

Value

formula

Examples

Run this code
# NOT RUN {
make_mboostform(y ~ x1 + s(x2))

# }

Run the code above in your browser using DataLab