powered by
Test for detecting violation of normality assumption.
ols_norm_test(y, ...)# S3 method for lm ols_norm_test(y, ...)
# S3 method for lm ols_norm_test(y, ...)
a numeric vector or an object of class lm
lm
other arguments
norm_test returns an object of class "norm_test". An object of class "norm_test" is a list containing the following components:
norm_test
"norm_test"
kolmogorv smirnov statistic
shapiro wilk statistic
cramer von mises statistic
anderson darling statistic
# NOT RUN { model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars) ols_norm_test(model) # }
Run the code above in your browser using DataLab