flatten_var: Flattens a var-result to a list of data.frames

Description Usage Arguments Value Examples

Description

Flattens a var-result to a list of data.frames

Usage

1
flatten_var(x, se = TRUE)

Arguments

x

a result of VAR

se

if the standard errors should be reported

Value

a list of data.frames containing the estimates est and the p-values p-value. If se = TRUE, the standard errors are also reported as se.

Examples

1
2
3
4
5
6
7
library(vars)
data(Canada)
res <- VAR(Canada, p = 2, type = "none")

summary(res)
flatten_var(res)
flatten_var(res, se = FALSE)

DavZim/varsExtra documentation built on June 18, 2019, 7:45 p.m.