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.

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)
#> [1] 0.7710297