ols_pred_rsq {olsrr}R 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)


[Package olsrr version 0.6.0 Index]