tx_mdl.glm: Present a glm-produced model object in a LaTeX table

Description Usage Arguments Value

View source: R/tx_models.R

Description

Present a glm-produced model object in a LaTeX table

Usage

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

Arguments

mdl

A glm object

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)) specifying the names of terms 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".

FUN

Function to apply to coefficients before presenting. Default is exp().

print_mdl

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

Value

A LaTeX or clear-text table.


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