View source: R/regression_model_matrix.R
regressionModelMetrics | R Documentation |
Generate regression model metrics such as R-squared and MAPE.
regressionModelMetrics(actuals, predictions, model)
actuals |
numeric vector of actual values |
predictions |
numeric vector of predictions |
model |
lm model object |
regressionModelMetrics
list
Jayachandra N
mod <- lm(formula = wt ~ ., data = mtcars)
predictions <- predict(mod, mtcars[,-6])
actuals <- mtcars[,6]
regressionModelMetrics(actuals = actuals,
predictions = predictions, model = mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.