predict.gmwm: Predict future points in the time series using the solution...

Description Usage Arguments Value See Also Examples

View source: R/GMWM.R

Description

Creates a prediction using the estimated values of GMWM through the ARIMA function within R.

Usage

1
2
## S3 method for class 'gmwm'
predict(object, data.in.gmwm, n.ahead = 1, ...)

Arguments

object

A gmwm object

data.in.gmwm

The data SAME EXACT DATA used in the GMWM estimation

n.ahead

Number of observations to forecast

...

Additional parameters passed to ARIMA Predict

Value

A predict.gmwm object with:

pred

Predictions

se

Standard Errors

resid

Residuals from ARIMA ML Fit

See Also

gmwm, ARMA

Examples

1
2
3
4
5
6
# Simulate an ARMA Process
xt = gen_gts(1000, ARMA(ar=0.3, ma=0.6, sigma2=1))
model = gmwm(ARMA(1,1), xt)

# Make prediction
predict(model, xt, n.ahead = 1)

SMAC-Group/gmwm documentation built on Sept. 11, 2021, 10:06 a.m.