est_percent_below: Computes the percentage of estimates' errors below a given...

View source: R/error.R

est_percent_belowR Documentation

Computes the percentage of estimates' errors below a given threshold

Description

Computes the percentage of estimates' errors below a given threshold

Usage

est_percent_below(
  actual = NULL,
  predicted = NULL,
  cutoff = 5,
  metric = "mape",
  errs = ind_error(actual, predicted, metric)
)

Arguments

actual

A numeric vector of true values

predicted

A numeric vector of estimated values

cutoff

A numeric: "acceptable" error in percent

metric

A character naming how to compute the error

Value

The numeric percentage of prediction errors below the cutoff

Examples

est_percent_below(actual = c(35, 36), predicted = c(36, 34), cutoff = 5,
                  metric = "mape")

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