Learn R Programming

gmvarkit (version 1.4.1)

plot.gmvarpred: plot method for class 'gmvarpred' objects

Description

plot.gmvarpred is plot method for gmvarpred objects.

Usage

# S3 method for gmvarpred
plot(x, ..., nt, mix_weights = TRUE, add_grid = TRUE)

Arguments

x

object of class 'gmvarpred' generated by predict.gmvar.

...

arguments passed to grid which plots grid to the figure.

nt

a positive integer specifying the number of observations to be plotted along with the prediction (ignored if plot_res==FALSE). Default is round(nrow(data)*0.15).

mix_weights

TRUE if forecasts for mixing weights should be plotted, FALSE in not.

add_grid

should grid be added to the plots?

Details

This method is used plot forecasts of GMVAR processes

References

  • Kalliovirta L., Meitz M. and Saikkonen P. 2016. Gaussian mixture vector autoregression. Journal of Econometrics, 192, 485-498.

  • Virolainen S. 2020. Structural Gaussian mixture vector autoregressive model. Unpublished working paper, available as arXiv:2007.04713.