prediction_errors: Function working as testbench for comparison of Prediction...

Description Usage Arguments Value Examples

View source: R/prediction_errors.R

Description

Function working as testbench for comparison of Prediction methods

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
prediction_errors(
  data,
  nval,
  ePara,
  ePara_name,
  Method,
  MethodName,
  strats,
  dval,
  append_
)

Arguments

data

as input time series for testing

nval

as an integer to decide number of values to predict

ePara

as type of error calculation (RMSE and MAE are default), add an error parameter of your choice in the following manner: ePara = c("errorparametername") where errorparametername is should be a source/function which returns desired error set

ePara_name

as list of names of error parameters passed in order

Method

as the list of locations of function for the proposed prediction method (should be recursive) (default:arima)

MethodName

as list of names for function for the proposed prediction method in order

strats

as list of forecasting strategies. Available : recursive and dirrec

dval

as last d values of the data to be used for forecasting

append_

suggests if the function is used to append to another instance

Value

Returns error comparison for forecasting methods

Examples

1

ForecastTB documentation built on March 14, 2020, 5:07 p.m.