append_ {ForecastTB}R Documentation

Function to append new methods in the study

Description

Function to append new methods in the study

Usage

append_(object, Method, MethodName, ePara, ePara_name)

Arguments

object

as output of 'prediction_errors()' function

Method

as the list of locations of function for the proposed prediction method

MethodName

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

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

Value

Returns error comparison for additional forecasting methods

Examples

## Not run: 
library(forecast)
test3 <- function(data, nval){return(as.numeric(forecast(ets(data), h = nval)$mean))}
a <- prediction_errors(data = nottem)
b <- append_(object = a, Method = c("test3(data,nval)"), MethodName = c('ETS'))
choose_(object = a)

## End(Not run)

[Package ForecastTB version 1.0.1 Index]