fit_linear_model_tree | R Documentation |
klassets_xy
objectFit Linear Model tree to klassets_xy
object
fit_linear_model_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 |
... |
Additional options passed to |
df <- sim_xy() df dflm <- fit_linear_model_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_linear_model_tree(df))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.