Learn R Programming

olsrr (version 0.4.0)

ols_pred_rsq: 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

Examples

Run this code
# NOT RUN {
model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars)
ols_pred_rsq(model)
# }

Run the code above in your browser using DataLab