plot_ECT | R Documentation |
This plot shows how variables in a (T)VECM respond to deviations from the long-term equilibrium
plot_ECT(x, add.legend = TRUE, legend.location = "topright", ...)
x |
object of class |
add.legend |
logical. Whether to add a legend? |
legend.location |
character. Location of the legend, see |
... |
arguments passed to the initial |
a plot, and invisibly the underlying data.frame, containing the ECT and the response for each variable
data(zeroyld)
vec_l1 <- VECM(zeroyldMeta[, c("long.run", "short.run")], lag =1)
tvec_l1 <- TVECM(zeroyldMeta[, c("long.run", "short.run")], lag =1,
plot = FALSE, trace = FALSE, th1 = list(exact = -1.263))
plot_ECT(vec_l1)
plot_ECT(tvec_l1, legend.location = "bottomright")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.