View source: R/fore.farma.wge.R
fore.farma.wge | R Documentation |
Find forecasts using a specified FARMA model
fore.farma.wge(x, d, phi, theta = 0, n.ahead = 10, lastn = TRUE, plot = TRUE)
x |
Realization to be analyzed |
d |
Parameter d in FARMA model |
phi |
Coefficients of the AR component of the FARMA model |
theta |
Coefficients of the MA component of the FARMA model |
n.ahead |
Number of values to forecast |
lastn |
If lastn=TRUE then the last n.ahead values are forecast. Otherwise, if lastn=FALSE the next n.ahead values are forecast |
plot |
If plot=TRUE then plots of the data and forecasts are plotted |
Forecasts for an AR model fit to the data are also calculated and optionally plotted
ar.fit.order |
Order of the AR model fit to the data |
ar.fore |
Forecasts based on the AR model |
farma.fore |
Forecasts based on the FARMA model |
Wayne Woodward
Applied Time Series Analysis with R, second edition by Woodward, Gray, and Elliott
fore.farma.wge(Nile, d=.37, phi=0, theta = 0, n.ahead = 30, lastn = TRUE, plot = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.