reg_error: Regression Error Metrics

View source: R/mod_error.R

reg_errorR Documentation

Regression Error Metrics

Description

Calculate error metrics for regression

Usage

reg_error(
  x,
  y,
  rho = FALSE,
  tau = FALSE,
  pct.red = FALSE,
  na.rm = FALSE,
  verbosity = 0
)

Arguments

x

Numeric vector: True values

y

Numeric vector: Predicted values

rho

Logical: If TRUE, calculate Spearman's rho

tau

Logical: If TRUE, calculate Kendall's tau

pct.red

Logical: If TRUE, calculate percent reduction in error

na.rm

Logical: If TRUE, remove NA values before computation

verbosity

Integer: If > 0, print messages to console

Value

Object of class regError

Author(s)

E.D. Gennatas


egenn/rtemis documentation built on Dec. 17, 2024, 6:16 p.m.