Description Usage Arguments Value Examples
Function tests the main assumption of ordinary least squares (OLS), including non-multicollinearity, non-autocorrelation and homoskedasticity.
1 | testDiagnostics(model, alpha = 0.05)
|
model |
Linear model to test. |
alpha |
Critical value of hypothesis tests. |
Named vector with outcomes of main test statistics.
1 2 3 4 | library(car)
m <- lm(mpg ~ disp + hp + wt + drat, data = mtcars)
testDiagnostics(m)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.