fevd | R Documentation |
A plot function for objects of class "bvarfevd".
fevd(object, ...)
## S3 method for class 'bvarfevd'
plot(x, ...)
object |
an object of class |
... |
further graphical parameters. |
x |
an object of class "bvarfevd", usually, a result of a call to |
# Load data
data("e1")
e1 <- diff(log(e1)) * 100
# Generate model data
model <- gen_var(e1, p = 2, deterministic = 2,
iterations = 100, burnin = 10)
# Chosen number of iterations and burnin should be much higher.
# Add prior specifications
model <- add_priors(model)
# Obtain posterior draws
object <- draw_posterior(model)
# Obtain FEVD
vd <- fevd(object, response = "cons")
# Plot
plot(vd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.