append_: Function to append new methods in the study

Description Usage Arguments Value Examples

View source: R/append_.R

Description

Function to append new methods in the study

Usage

1
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

1
2
3
4
5
6
7
8
## 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)

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