Learn R Programming

GreyModel (version 0.1.0)

fcast_grey: Grey Model Forecast

Description

The fcast_grey function computes the h step ahead forecast values.

Usage

fcast_grey(data, h=3)

Arguments

data

Input univariate time series (ts) data.

h

The forecast horizon.

Value

Forecasted_value

h step ahead forecasted values of the fitted Grey Model.

Details

This function returns the fitted Grey model's h step ahead forecasted values.

References

Hsu, L. and Wang, C. (2007). Forecasting the output of integrated circuit industry using a grey model improved by the Bayesian analysis. Technological Forecasting and Social Change, 74, 843--853.

Ou, S. (2012). Forecasting agricultural output with an improved grey forecasting model based on the genetic algorithm. Computer and Electronics in Agriculture, 85, 33--39.

Wang, C. and Hsu, L. (2008). Using genetic algorithms grey theory to forecast high technology industrial output. Applied Mathematics and Computation, 195, 256--263.

See Also

GM, GM_test

Examples

Run this code
# NOT RUN {
xt <- c(640,724,813,1145,1509,2122,1883,2413,2834,4235,7144,5269)
fcast_grey(data=xt)
# }

Run the code above in your browser using DataLab