Learn R Programming

olsrr (version 0.4.0)

ols_norm_test: Test for normality

Description

Test for detecting violation of normality assumption.

Usage

ols_norm_test(y, ...)

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

Arguments

y

a numeric vector or an object of class lm

...

other arguments

Value

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

kolmogorv

kolmogorv smirnov statistic

shapiro

shapiro wilk statistic

cramer

cramer von mises statistic

anderson

anderson darling statistic

Examples

Run this code
# NOT RUN {
model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars)
ols_norm_test(model)
# }

Run the code above in your browser using DataLab