model_error: Returns the error introduced by a model

View source: R/error.R

model_errorR Documentation

Returns the error introduced by a model

Description

Returns the error introduced by a model

Usage

model_error(
  model,
  data_test,
  y_name,
  metric = "rmse",
  est_below_cutoff = 5,
  err_above_cutoff = 80,
  error_only = FALSE
)

Arguments

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

Value

The numeric error

Examples

model_error(mod_lm, data_test, y_name = "SUBEX", metric = "rmse")

cottinlola/modeleVariablesAP documentation built on April 30, 2022, 7:42 a.m.