check_nonlinear: Plot model parameters against residuals of a fitted model

Description Usage Arguments Value Examples

View source: R/check_nonlinear.R

Description

Plot model parameters against residuals of a fitted model

Usage

1

Arguments

x

a fitted model object

...

not used at present

Value

NULL called for its side effect, making a plot

Examples

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

atyre2/NRES803 documentation built on Sept. 1, 2021, 5:11 a.m.