predictOOB {SDModels} | R Documentation |
Out-of-bag predictions for the SDForest
Description
Predicts the response for the training data using only the trees in the SDForest that were not trained on the observation.
Usage
predictOOB(object, X = NULL)
Arguments
object |
Fitted object of class |
X |
Covariates of the training data.
If |
Value
A vector of out-of-bag predictions for the training data. #' set.seed(1) n <- 50 X <- matrix(rnorm(n * 5), nrow = n) y <- sign(X[, 1]) * 3 + rnorm(n) model <- SDForest(x = X, y = y, Q_type = 'no_deconfounding', nTree = 5, cp = 0.5) predictOOB(model)
Author(s)
Markus Ulmer
See Also
SDForest
prune.SDForest
plotOOB
[Package SDModels version 1.0.13 Index]