Learn R Programming

qardlr (version 1.0.1)

qardl_table: Generate Publication-Ready QARDL Tables

Description

Creates formatted tables suitable for academic publications from QARDL estimation results.

Usage

qardl_table(
  x,
  type = c("text", "latex", "html"),
  include = c("beta", "gamma"),
  stars = TRUE,
  digits = 3,
  caption = NULL,
  label = NULL
)

Value

Character string containing the formatted table.

Arguments

x

An object of class "qardl".

type

Character. Type of table: "latex", "html", or "text". Default is "text".

include

Character vector. Which parameters to include: "beta", "phi", "gamma", "rho". Default is c("beta", "gamma").

stars

Logical. Include significance stars. Default is TRUE.

digits

Integer. Number of decimal places. Default is 3.

caption

Character. Table caption. Default is NULL.

label

Character. LaTeX label. Default is NULL.

Examples

Run this code
data(qardl_sim)
fit <- qardl(y ~ x1 + x2, data = qardl_sim, tau = c(0.25, 0.50, 0.75), p = 2, q = 2)
cat(qardl_table(fit, type = "text"))

Run the code above in your browser using DataLab