Learn R Programming

arfima (version 1.8-1)

plot.predarfima: Plots the original time series, the predictions, and the prediction intervals for a predarfima object.

Description

This function takes a predarfima object generated by predict.arfima and plots all of the information contained in it. The colour code is as follows:

Usage

# S3 method for predarfima
plot(
  x,
  xlab = NULL,
  ylab = NULL,
  main = NULL,
  ylim = NULL,
  numback = 5,
  xlim = NULL,
  ...
)

Value

None. Generates a plot

Arguments

x

A predarfima object

xlab

Optional

ylab

Optional

main

Optional

ylim

Optional

numback

The number of last values of the original series to plot defined by the user. The default is five

xlim

Optional

...

Currently not used

Author

JQ (Justin) Veenstra

Details

grey: exact prediction red: exact prediction intervals (PIs) orange: limiting PIs

See predict.arfima.

References

Veenstra, J.Q. Persistence and Antipersistence: Theory and Software (PhD Thesis)

See Also

predict.arfima, print.predarfima

Examples

Run this code
# \donttest{
set.seed(82365)
sim <- arfima.sim(1000, model = list(dfrac = 0.4, theta=0.9, dint = 1))
fit <- arfima(sim, order = c(0, 1, 1), back=TRUE)
fit
pred <- predict(fit, n.ahead = 5)
pred
plot(pred)
#Let's look at more context
plot(pred, numback = 50)
# }

Run the code above in your browser using DataLab