present_mdl.glm: Format and present a LaTeX table that summarizes a glm model...

Description Usage Arguments Value

View source: R/present_models.R

Description

Format and present a LaTeX table that summarizes a glm model object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S3 method for class 'glm'
present_mdl(
  mdl,
  d = 3,
  intercept = FALSE,
  varnames = NULL,
  lbl = "",
  caption = "",
  link = exp
)

Arguments

mdl

A glm object produced by stats::glm()

d

An integer specifying the number of significant digits to be presented in the point estimate and interval. Defaults to 3.

intercept

Logical indicating whether the intercept should be included in the presentation of the model. Defaults to FALSE.

varnames

Character vector containing the English-version names of the independent variables in themodel. Defaults to names(mdl$coefficients)

lbl

LaTeX label to attach to the presented table.

caption

Caption to print above the table.

link

Function to be applied to beta coefficients to yield, for example, odds ratios. I know this is not the link function. Defaults to exp.

Value

A formatted LaTeX table containing estimates of model parameters and some simple fit statistics.


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