Learn R Programming

olsrr (version 0.5.3)

ols_test_correlation: Correlation test for normality

Description

Correlation between observed residuals and expected residuals under normality.

Usage

ols_test_correlation(model)

Value

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

Arguments

model

An object of class lm.

Deprecated Function

ols_corr_test() has been deprecated. Instead use ols_test_correlation().

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

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

Run the code above in your browser using DataLab