tsdiag.garma_model | R Documentation |
Produces diagnostic plots of the model fit. This function is copied from stats::tsdiag but modifies the fit_df for the Ljung-Box test for use with garma models.
## S3 method for class 'garma_model'
tsdiag(object, gof.lag = 10, ...)
object |
(garma_model) The garma_model to produce the diagnostic plots for. |
gof.lag |
(int) The number of lags to examine for the Ljung-Box white noise test. |
... |
further arguments to be passed to particular methods. |
None. Diagnostics are generated.
The stats package tsdiag function: https://stat.ethz.ch/R-manual/R-patched/library/stats/html/tsdiag.html.
data(AirPassengers)
ap <- as.numeric(diff(AirPassengers, 12))
mdl <- garma(ap, order = c(9, 1, 0), k = 0, method = "CSS", include.mean = FALSE)
tsdiag(mdl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.