predict.hong: predict.hong

Description Usage Arguments Details Value Author(s)

View source: R/predict.hong.R

Description

Predict method for Hong Vanilla Model

Usage

1
2
## S3 method for class 'hong'
predict(obj.hv, newdata = NULL)

Arguments

obj.hv

Object of class inheriting from use of hong function.

new.data

Data frame with predictors. If omitted, the fitted values are used.

Details

new.data must contain the same predictors that data in hong. Aditionally new.data must contain trend variable. This variable was computed like a sequence from 1 to number of rows of input data.frame in hong model function. In forecasting new consecutive periods, trend variable in new.data must be computed like a sequence from number of rows of original data.

Value

predicted values

Author(s)

Jairo Cugliari, Andres Castrillejo, Fernando Massa, Ignacio Ramirez


cugliari/enercast documentation built on Sept. 15, 2019, 10:13 a.m.