Test for detecting violation of normality assumption.

ols_test_normality(y, ...)

# S3 method for lm
ols_test_normality(y, ...)

Arguments

y

A numeric vector or an object of class lm.

...

Other arguments.

Value

ols_test_normality returns an object of class "ols_test_normality". An object of class "ols_test_normality" is a list containing the following components:

kolmogorv

kolmogorv smirnov statistic

shapiro

shapiro wilk statistic

cramer

cramer von mises statistic

anderson

anderson darling statistic

Deprecated Function

ols_norm_test() has been deprecated. Instead use ols_test_normality().

See also

Examples

model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars) ols_test_normality(model)
#> ----------------------------------------------- #> Test Statistic pvalue #> ----------------------------------------------- #> Shapiro-Wilk 0.9366 0.0600 #> Kolmogorov-Smirnov 0.1152 0.7464 #> Cramer-von Mises 2.8122 0.0000 #> Anderson-Darling 0.5859 0.1188 #> -----------------------------------------------