WaveletFittingRF {WaveletRF}R Documentation

Wavelet-RF Hybrid Model for Forecasting

Description

The Wavelet Decomposition followed by Random Forest Regression (RF) models have been applied for time series forecasting. The maximum overlap discrete wavelet transform (MODWT) algorithm was chosen as it works for any length of the series. The series is first divided into training and testing sets. In each of the wavelet decomposed series, the supervised machine learning approach namely random forest was employed to train the model. This package also provides accuracy metrics in the form of Root Mean Square Error (RMSE) and Mean Absolute Prediction Error (MAPE).

Usage

WaveletFittingRF(
  ts,
  tlag = ACF,
  Waveletlevels,
  WaveletFilter = "haar",
  boundary = "periodic",
  FastFlag = TRUE,
  SplitRatio = 0.8
)

Arguments

ts

Univariate time series

tlag

Number of lags

Waveletlevels

The level of wavelet decomposition

WaveletFilter

Wavelet filter use in the decomposition

boundary

The boundary condition of wavelet decomposition

FastFlag

The FastFlag condition of wavelet decomposition: True or False

SplitRatio

Training and testing data split

Value

References

Examples

data<-rnorm(200,mean=20,sd=3)
WRF<-WaveletFittingRF(ts=data,tlag=2,Waveletlevels=3)

[Package WaveletRF version 0.1.0 Index]