tx.glm: Present a glm model object in a LaTeX table

Description Usage Arguments Value

Description

Present a glm model object in a LaTeX table

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## S3 method for class 'glm'
tx(
  x,
  d = 3,
  intercept = FALSE,
  varnames = NULL,
  lbl = "",
  caption = "",
  coef.head = "OR",
  transf = exp,
  print_mdl = TRUE
)

Arguments

d

An integer specifying the number of significant digits to be presented in the table.

intercept

Logical indicating whether the table should include a row for the fixed intercept. Default is FALSE.

varnames

Character vector of length length(names(mdl$coefficients$fixed)) specifying the names of fixed effects in the model.

lbl

LaTeX label for the table.

caption

Caption for the table.

coef.head

Word or phrase to use as a header for coefficient estimates. Default is OR.

transf

Function to transform beta coefficients. Default is exp().

print_mdl

Logical indicating whether the summary table should be wrapped in LaTeX.

mdl

A glm object

Value

A LaTeX or clear-text table.


trahelyk/trahelyk_pkg documentation built on June 14, 2021, 9:25 p.m.