stable_bvar {bayesianVARs} | R Documentation |
Stable posterior draws
Description
stable_bvar()
detects and discards all posterior draws of an
bayesianVARs_bvar
object that do not fulfill the stability condition:
A VAR(p) model is considered as stable only if the eigenvalues of the
companion form matrix lie inside the unit circle.
Usage
stable_bvar(object, quiet = FALSE)
Arguments
object |
A |
quiet |
logical indicating whether informative output should be omitted. |
Value
An object of type bayesianVARs_bvar
.
Examples
# Access a subset of the usmacro_growth dataset
data <- usmacro_growth[,c("GDPC1", "CPIAUCSL", "FEDFUNDS")]
# Estimate a model
mod <- bvar(data, sv_keep = "all", quiet = TRUE)
# Discard "unstable" draws
stable_mod <- stable_bvar(mod)
[Package bayesianVARs version 0.1.3 Index]