stability {svars} | R Documentation |
Structural stability of a VAR(p)
Description
Computes an empirical fluctuation process according to a specified
method from the generalized fluctuation test framework. The test
utilises the function efp()
and its methods from
package ‘strucchange
’. Additionally, the function provides the option to
compute a multivariate chow test.
Usage
## S3 method for class 'varest'
stability(
x,
type = c("OLS-CUSUM", "Rec-CUSUM", "Rec-MOSUM", "OLS-MOSUM", "RE", "ME", "Score-CUSUM",
"Score-MOSUM", "fluctuation", "mv-chow-test"),
h = 0.15,
dynamic = FALSE,
rescale = TRUE,
...
)
Arguments
x |
Object of class ‘ |
type |
Specifies which type of fluctuation process will be computed, the default is ‘ |
h |
A numeric from interval (0,1) specifying the bandwidth. Determines the size of the data window
relative to sample size (for ‘ |
dynamic |
Logical. If ‘ |
rescale |
Logical. If ‘ |
... |
Ellipsis, is passed to |
Details
For details, please refer to documentation efp
and chow.test
.
Value
A list with either class attribute ‘varstabil
’ or ‘chowpretest
’ holding the following elements
in case of class ‘varstabil
’:
stability |
A list with objects of class ‘ |
names |
Character vector containing the names of the endogenous variables. |
K |
An integer of the VAR dimension. |
In case of class ‘chowpretest
’ the list consists of the following elements:
teststat_bp |
A vector containing the calculated break point test statistics for all considered break points. |
teststat_sp |
A vector containing the calculated sample split test statistics for all considered sample splits. |
from |
An integer sepcifying the first observation as possible break date. |
to |
An integer sepcifying the last observation as possible break date. |
var |
A list with objects of class ‘ |
break_point |
Logical, if the break point test should be the benchmark for later analysis. |
Author(s)
Bernhard Pfaff, Alexander Lange, Bernhard Dalheimer, Simone Maxand, Helmut Herwartz
References
Zeileis, A., F. Leisch, K. Hornik and C. Kleiber (2002), strucchange: An R Package for Testing for Structural Change in Linear Regression
Models, Journal of Statistical Software, 7(2): 1-38, doi:10.18637/jss.v007.i02
and see the references provided in the reference section of efp
and chow.test
, too.
See Also
Examples
data(Canada)
var.2c <- VAR(Canada, p = 2, type = "const")
var.2c.stabil <- stability(var.2c, type = "OLS-CUSUM")
var.2c.stabil
plot(var.2c.stabil)
data(USA)
v1 <- VAR(USA, p = 6)
x1 <- stability(v1, type = "mv-chow-test")
plot(x1)