| stability_sh | R Documentation |
Computes empirical fluctuation processes for VAR estimates.
Utilizes strucchange::efp() for the VAR estimates of each time series
variable.
stability_sh(
x,
type = c("OLS-CUSUM", "Rec-CUSUM", "Rec-MOSUM", "OLS-MOSUM", "RE", "ME", "Score-CUSUM",
"Score-MOSUM", "fluctuation"),
h = 0.15,
dynamic = FALSE,
rescale = TRUE,
...
)
x |
Object of class "varshrinkest" |
type, h, dynamic, rescale, ... |
Other arguments to
|
A variant of vars::stability() for an object of class "varshrinkest".
A list with class attribute "varstabil" which contains the following
elements: stability, endog, K. The stability is
a list of strucchange::efp() outputs.
stability
data(Canada, package = "vars")
y <- diff(Canada)
estim <- VARshrink(y, p = 2, type = "const", method = "ridge")
stabil <- stability_sh(estim)
plot(stabil)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.