Description Usage Arguments Value Examples
Creates a LaTeX or HTML table for a VAR result
1 2 3 4 5 |
x |
a varest restult, as returned from |
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 |
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 |
latex or html string depending on the specified format
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.