predict-random_linear_forest-method: predict new data from random_linear_forest models

predict,random_linear_forest-methodR Documentation

predict new data from random_linear_forest models

Description

predict new data from random_linear_forest models

Usage

## S4 method for signature 'random_linear_forest'
predict(object, new_data, ...)

Arguments

object

random_linear_forest being used

new_data

data.frame.

...

extra parameters ignored

Value

vector of predictions for each row

Examples

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

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