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
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