powered by
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)
An object of class lm.
lm
Predicted rsquare of the model.
Other influence measures: ols_hadi, ols_leverage, ols_press
ols_hadi
ols_leverage
ols_press
# NOT RUN { model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars) ols_pred_rsq(model) # }
Run the code above in your browser using DataLab