ols_pred_rsq: Predicted rsquare

View source: R/ols-influence-measures.R

ols_pred_rsqR Documentation

Predicted rsquare

Description

Use predicted rsquared to determine how well the model predicts responses for new observations. Larger values of predicted R2 indicate models of greater predictive ability.

Usage

ols_pred_rsq(model)

Arguments

model

An object of class lm.

Value

Predicted rsquare of the model.

See Also

Other influence measures: ols_hadi(), ols_leverage(), ols_press()

Examples

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


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