error: Returns the error between actual and predicted using metric

View source: R/error.R

errorR Documentation

Returns the error between actual and predicted using metric

Description

Returns the error between actual and predicted using metric

Usage

error(actual, predicted, metric = "rmse")

Arguments

actual

A numeric vector of true values

predicted

A numeric vector of estimated values

metric

A character naming how to compute the error

Value

The numeric error

Examples

error(actual = c(35, 36), predicted = c(36, 34), metric = "rmse")

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