Description Usage Arguments Value
View source: R/present_models.R
Format and present a LaTeX table that summarizes a glm model object
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
)
|
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. |
A formatted LaTeX table containing estimates of model parameters and some simple fit statistics.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.