powered by
This uses the linear tree model from party kit and bootstrapping to create linear random forests that work like a random forest but with the linear dynamics permuted with a linear method
random_linear_forest( data, num_tree, model_formula, num_features = NULL, na.action = na.roughfix, max_depth = 5, importance = FALSE, verbose = FALSE )
random_linear_forest object trained using given data
a dataframe containing the variables in the model
numeric, the number of trees in the random forest.
an object of class "formula": a symbolic description of the model to be fitted.
number of tree features in each tree. if left NULL rounded up square of the number of columns
passed to lmtree to handle missing data
the max depth of each tree in the forest
controls if the importance should be calculated and stored
If true it prints training progress
data(Example_data, package = "Covid19Wastewater") random_linear_forest(Example_data, 2, PMMoV ~ N1 + N2 | pcr_type)
Run the code above in your browser using DataLab