fit_linear_model | R Documentation |
klassets_xy
objectFit Linear model to klassets_xy
object
fit_linear_model(df, order = 1, stepwise = FALSE, verbose = FALSE)
df |
A object from |
order |
Order of predictive variable x. |
stepwise |
A logical value to indicate to perform stepwise. |
verbose |
A logical value to indicate to show the trace of the stepwise procedure. |
df <- sim_xy() df dflm <- fit_linear_model(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(df)) plot(fit_linear_model(df, order = 5, stepwise = TRUE, verbose = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.