View source: R/heteroscedasticity_check.R
heteroscedasticity_check | R Documentation |
Checks a simple or multiple linear regression model for heteroscedasticity and linearity. The function outputs orientation plots and computes relevant statistical tests (heteroscedasticity = lmtest::bptest; linearity = lmtest::raintest).
heteroscedasticity_check(mdl, random = NULL)
mdl |
A simple or multiple linear regression model. |
A plot and a test results in the console.
D. Schmitz & J. Esser
Achim Zeileis, Torsten Hothorn (2002). Diagnostic Checking in Regression Relationships. R News 2(3), 7-10. URL: https://CRAN.R-project.org/doc/Rnews/
data("data_s")
model <- lm(sDur ~ typeOfS + pauseDur, data_s)
heteroscedasticity_check(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.