Description Usage Arguments Value Examples
View source: R/helper-intercept.r
Often, we prefer not to have an intercept term in a model, but user-specified formulas might have included the intercept term. In this case, we wish to update the formula but without the intercept term. This is especially true in numerous classification models, where errors and doom can occur if an intercept is included in the model.
1 |
formula |
a model formula to remove its intercept term |
data |
data frame |
formula with no intercept term
1 2 | iris_formula <- formula(Species ~ .)
no_intercept(iris_formula, data = iris)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.