brif.formula {brif} | R Documentation |
Build a model (and make predictions) with formula
## S3 method for class 'formula'
brif(
formula,
data,
subset,
na.action = stats::na.pass,
newdata = NULL,
type = c("score", "class"),
...
)
formula |
an object of class " |
data |
an optional data frame, list or environment (or object coercible by |
subset |
an optional vector specifying a subset (in terms of index numbers, not actual data) of observations to be used in the fitting process. |
na.action |
a function which indicates what should happen when the data contain NAs. |
newdata |
a data frame containing the data set for prediction. Default is NULL. If newdata is supplied, prediction results will be returned. |
type |
a character string specifying the prediction format, which takes effect only when |
... |
additional algorithmic parameters. See |
an object of class brif
to be used by predict.brif
.
bf <- brif(Species ~ ., data = iris)
pred <- predict(bf, iris[,1:4])