tabulize: Creates a LaTeX or HTML table for a VAR result

Description Usage Arguments Value Examples

Description

Creates a LaTeX or HTML table for a VAR result

Usage

1
2
3
4
5
tabulize(x, format = "latex", digits = 3, p = 0.1, se_values = TRUE,
  stars = c(`***` = 0, `**` = 0.001, `*` = 0.01, . = 0.05, ` ` = 0.1))

tabulise(x, format = "latex", digits = 3, p = 0.1, se_values = TRUE,
  stars = c(`***` = 0, `**` = 0.001, `*` = 0.01, . = 0.05, ` ` = 0.1))

Arguments

x

a varest restult, as returned from VAR

format

either "html" or "latex" depending on the desired output format

digits

number of digits to display

p

p-values threshold below which the estimate is displayed as bold, if the estimate should not be boldened, use p = 0.

se_values

if TRUE, the standard errors are reported instead of the p-values, defaults to TRUE

stars

a named vector of the signs, if set to NULL no stars are shown

Value

latex or html string depending on the specified format

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
library(vars)
data(Canada)
varres <- VAR(Canada, p = 2, type = "none")

# latex table
tabulize(varres)

# html table
tabulize(varres, "html")

# if you want to display 5 digits
tabulize(varres, digits = 5)

# if you want to display 2 digits and a p-value threshold of 0.05
tabulize(varres, digits = 2, p = 0.05)

# disable bold
tabulize(varres, p = 0)

# show p-values instead of standard errors in the second row per variable
tabulize(varres, se_values = FALSE)

# dont show stars
tabulize(varres, stars = NULL)

# provide custome stars
stars_new <- c("***" = 0, "**" = 0.01, "*" = 0.05, " " = 0.1)
tabulize(varres, stars = stars_new, se_values = FALSE)

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