predict.mvtb: Predicted values

Description Usage Arguments Value

Description

Predicted values

Usage

1
2
## S3 method for class 'mvtb'
predict(object, n.trees = NULL, newdata, drop = TRUE, ...)

Arguments

object

mvtb object

n.trees

number of trees. If a vector, returns predictions in an array. Defaults to the minimum number of trees by CV, test, or training error

newdata

matrix of predictors.

drop

TRUE/FALSE Drop any dimensions of length 1

...

not used

Value

Returns an (array, matrix, vector) of predictions for all outcomes. The third dimension corresponds to the predictions at a given number of trees, the second dimension corresponds to the number of outcomes.


mvtboost documentation built on May 2, 2019, 2:14 p.m.