Learn R Programming

olsrr (version 0.4.0)

ols_corr_test: Correlation Test For Normality

Description

Correlation between observed residuals and expected residuals under normality.

Usage

ols_corr_test(model)

Arguments

model

an object of class lm

Value

correlation between fitted regression model residuals and expected values of residuals

Examples

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

Run the code above in your browser using DataLab