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

Description Usage Arguments Value

View source: R/tx_models.R

Description

Present a coxph-produced model object in a LaTeX table

Usage

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

Arguments

mdl

A coxph object

d

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

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 "HR".

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.