View source: R/ols-model-performance.R
| ols_model_performance | R Documentation |
Evaluate performance of regression models.
ols_model_performance(model, ...)
model |
An object of class |
... |
Other arguments. |
ols_model_performance returns an object of class
"ols_model_performance". An object of class "ols_regress" is a
list containing the following components:
r |
square root of rsquare, correlation between observed and predicted values of dependent variable |
rsq |
coefficient of determination or r-square |
adjr |
adjusted rsquare |
prsq |
predicted rsquare |
aic |
akaike information criteria |
sbc |
bayesian information criteria |
sbic |
sawa bayesian information criteria |
rmse |
root mean squared error |
Kutner, M. H., Nachtsheim, C. J., Neter, J. and Li, W. (2005). Applied Linear Statistical Models, 5th ed. New York: McGraw-Hill/Irwin.
# model
model <- lm(mpg ~ disp + hp + wt, data = mtcars)
# model performance
ols_model_performance(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.