ols_test_correlation: Correlation test for normality

View source: R/ols-normality-tests.R

ols_test_correlationR Documentation

Correlation test for normality

Description

Correlation between observed residuals and expected residuals under normality.

Usage

ols_test_correlation(model)

Arguments

model

An object of class lm.

Value

Correlation between fitted regression model residuals and expected values of residuals.

See Also

Other residual diagnostics: ols_plot_resid_box(), ols_plot_resid_fit(), ols_plot_resid_hist(), ols_plot_resid_qq(), ols_test_normality()

Examples

model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars)
ols_test_correlation(model)


olsrr documentation built on May 29, 2024, 12:35 p.m.