Description Usage Arguments Value Examples
View source: R/check_nonlinear.R
Plot model parameters against residuals of a fitted model
1 | check_nonlinear(x, ...)
|
x |
a fitted model object |
... |
not used at present |
NULL called for its side effect, making a plot
1 2 3 4 5 6 7 | lm1 <- lm(Sepal.Width ~ Petal.Length, data = iris)
check_nonlinear(lm1) # some indication of issues
lm2 <- lm(Sepal.Width ~ Petal.Length*Petal.Width, data = iris)
check_nonlinear(lm2)
# Also works with categorical variables.
lm3 <- lm(Sepal.Width ~ Petal.Length*Petal.Width*Species, data = iris)
check_nonlinear(lm3) # fixes the problems with lm1 and lm2
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.