error: Forecast error

Description Usage Arguments Value

Description

Calculates either the root mean squared error or the mean absolute error of a set of forecasts.

Usage

1
2
3
4
5
6
7
error(x, type, return)

## S3 method for class 'dockless_fc'
error(x, type, return = "all")

## S3 method for class 'dockless_fcc'
error(x, type, return = "average")

Arguments

x

object either of class dockless_fc or dockless_fcc.

type

one of 'RMSE' or 'MAE'.

return

one of 'average', 'min', 'max' or 'all'. If 'average', the average error of all dockless_fc objects in a dockless_fcc will be returned. If 'min', this will be the minimum error, and if 'max', this will be the maximum error. If 'all' errors for all dockless_fc objects in a dockless_fcc are given seperately, in a numeric vector. If x is an object of class dockless_fc, 'all' is the only option.

Value

Returns either a numeric value or a vector of numeric values.


luukvdmeer/dockless documentation built on May 10, 2019, 1:24 p.m.