Learn R Programming

MAPA (version 2.0.7)

plot.mapa.fit: Produce estimated MAPA fit plot

Description

The following function plots the fitted components at each aggregation level of an estimated MAPA. The plot is the same as the one that can be produced optionally by mapaest.

Usage

# S3 method for mapa.fit
plot(x, xreg.plot=c(TRUE,FALSE),...)

Arguments

x

Fitted MAPA model (from mapaest).

xreg.plot

Add infromation about xreg in the figure.

...

Additional arguments.

Author

Nikolaos Kourentzes, nikolaos@kourentzes.com.

References

  • Kourentzes N., Petropoulos F., Trapero J.R. (2014) Improving forecasting by estimating time series structural components across multiple frequencies. International Journal of Forecasting, 30(2), 291--302.

  • Kourentzes N., Petropoulos F. (2015) Forecasting with multivariate temporal aggregation: The case of promotional modelling. International Journal of Production Economics.

  • You can find more information about MAPA at Nikos' blog.

See Also

mapaest, mapa.

Examples

Run this code
mapafit <- mapaest(admissions,outplot=0)
plot(mapafit)

Run the code above in your browser using DataLab