gen_OOB_pred: get OOB predictions of the training dataset returns the...

View source: R/library--analysis_tools--lm_rand_forest--info.R

gen_OOB_predR Documentation

get OOB predictions of the training dataset returns the predictions of each row of the input data using only trees not trained on the row

Description

get OOB predictions of the training dataset returns the predictions of each row of the input data using only trees not trained on the row

Usage

gen_OOB_pred(tree_model, incMSE = NA, resid = FALSE)

Arguments

tree_model

random_linear_forest object you want the OOB predictions of

incMSE

if its a numeric scramble the given column

resid

if True return the residuals of the model instead

Value

data.frame or vector of oob predictions

Examples

data(Example_data, package = "Covid19Wastewater")
model <- random_linear_forest(Example_data, 2, PMMoV ~ N1 + N2 | pcr_type)
gen_OOB_pred(model, resid = TRUE)

Covid19Wastewater documentation built on Aug. 25, 2023, 1:07 a.m.