View source: R/library--analysis_tools--lm_rand_forest--info.R
gen_OOB_pred | R 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
gen_OOB_pred(tree_model, incMSE = NA, resid = FALSE)
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 |
data.frame or vector of oob predictions
data(Example_data, package = "Covid19Wastewater")
model <- random_linear_forest(Example_data, 2, PMMoV ~ N1 + N2 | pcr_type)
gen_OOB_pred(model, resid = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.