train: Training statistical models

Description Usage Arguments Details

View source: R/train.R

Description

This function coordinates four components in building statistical models: 1) the data to use for training 2) the response variable and 3) the explanatory variables, specified as a model formula 4) the architecture of the model.

Usage

1
train(data, formula = formula(data), architecture = "lm")

Arguments

data

the data to use for training

formula

the formula describing the structure of the relationship among variables

architecture

the model architecture, given as a function name, quoted or not, e.g. lm or "lm"

Details

This is a light wrapper on the architecture-specific function fitting programs


statisticalModeling documentation built on May 29, 2017, 11:56 p.m.