powered by
Test for normality Test for detecting violation of normality assumption.
ols_test_normality(model, ...)
ols_test_normality is a list containing the following components:
ols_test_normality
kolmogorov smirnov statistic
shapiro wilk statistic
cramer von mises statistic
anderson darling statistic
an object of class lm.
lm
Other arguments.
data(macroKZ) model <- lm(real_gdp ~ imp + exp + usdkzt + poil, data = macroKZ) ols_test_normality(model)
Run the code above in your browser using DataLab