testDiagnostics: Test assumptions of least squares

Description Usage Arguments Value Examples

View source: R/regression.R

Description

Function tests the main assumption of ordinary least squares (OLS), including non-multicollinearity, non-autocorrelation and homoskedasticity.

Usage

1
testDiagnostics(model, alpha = 0.05)

Arguments

model

Linear model to test.

alpha

Critical value of hypothesis tests.

Value

Named vector with outcomes of main test statistics.

Examples

1
2
3
4
library(car)
m <- lm(mpg ~ disp + hp + wt + drat, data = mtcars)

testDiagnostics(m)

sfeuerriegel/ResearchGroupTools documentation built on May 29, 2019, 8:01 p.m.