View source: R/ols-influence-measures.R
ols_pred_rsq | R Documentation |
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)
model |
An object of class |
Predicted rsquare of the model.
Other influence measures:
ols_hadi()
,
ols_leverage()
,
ols_press()
model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars)
ols_pred_rsq(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.