model_error | R Documentation |
Returns the error introduced by a model
model_error( model, data_test, y_name, metric = "rmse", est_below_cutoff = 5, err_above_cutoff = 80, error_only = FALSE )
model |
A model |
data_test |
A data.frame |
y_name |
A character naming the variable to explain |
metric |
A character naming how to compute the error |
est_below_cutoff |
"Acceptable" error in percent |
err_above_cutoff |
Desired percent of "acceptable" estimated values |
The numeric error
model_error(mod_lm, data_test, y_name = "SUBEX", metric = "rmse")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.