fit_regression_tree | R Documentation |
klassets_xy
objectFit regression tree to klassets_xy
object
fit_regression_tree(df, maxdepth = Inf, alpha = 0.05, ...)
df |
A object from |
maxdepth |
Max depth of the tree. Same used in |
alpha |
Alpha value, same used in |
... |
Options for |
df <- sim_xy() df dflm <- fit_regression_tree(df) dflm plot(dflm) df <- sim_xy(n = 1000, x_dist = runif) df <- dplyr::mutate(df, y = y + 2*sin(5 * x)) plot(df) plot(fit_regression_tree(df, maxdepth = 3)) # default plot(fit_regression_tree(df))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.