| stable_bvar | R Documentation | 
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.
stable_bvar(object, quiet = FALSE)
object | 
 A   | 
quiet | 
 logical indicating whether informative output should be omitted.  | 
An object of type bayesianVARs_bvar.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.