kc_regtex: Export regression table to LaTeX file

View source: R/kc_regtex.R

kc_regtexR Documentation

Export regression table to LaTeX file

Description

Export a list of regression output in tex format with options to separate model estimates from diagnostics; depends on modelsummary, stringr, and purrr.

Usage

kc_regtex(
  reglist,
  sep = FALSE,
  coef_map = NULL,
  gof_map = NULL,
  add_rows = NULL,
  mc_cores = 1,
  num_fmt = "%.3f",
  fpath = NULL,
  fname = "~/Desktop/kc_mod_all.tex",
  fname_est = "~/Desktop/kc_mod_est.tex",
  fname_det = "~/Desktop/kc_mod_det.tex"
)

Arguments

reglist

A list of regression output using base::lm() or fixest::feols()

sep

Whether to output coefficient estimates separately from model diagnostics

coef_map

Model estimates to report; using modelsummary's coef_map argument

gof_map

Model diagnostics to report; using modelsummary's gof_map argument

add_rows

Additional rows to be included; using modelsummary's add_rows argument

mc_cores

Parallel computation of model diagnostics; using modelsummary's mc.cores argument

num_fmt

Format of numeric values; using modelsummary's fmt argument

fpath

File path for output; deprecated - use fname* exclusively

fname

File name for output (both coefficients and diagnostics)

fname_est

File name for output (coefficient estimates only)

fname_det

File name for output (model diagnostics only)


kennchua/kctools documentation built on Aug. 28, 2024, 8:37 a.m.