get_error: Get error metrics

View source: R/utils_benchmarks.R

get_errorR Documentation

Get error metrics

Description

This function calculates various error metrics for a given prediction object.

Usage

get_error(obj, actual, level = 95)

Arguments

obj

A prediction object containing mean predictions and intervals.

actual

A numeric vector of actual values.

level

The confidence level for the prediction intervals.

Value

A numeric vector containing the error metrics.

Examples


obj <- list(mean = 10, lower = 8, upper = 12)
actual <- 11
get_error(obj, actual)


Techtonique/ahead documentation built on April 14, 2025, 12:51 p.m.