Format the information in object as a table using Pandoc coding or plain text, and cat it to stdout.
Usage
# S3 method for class 'modelsum'
summary(
object,
...,
labelTranslations = NULL,
text = FALSE,
title = NULL,
term.name = "",
adjustment.names = FALSE
)
# S3 method for class 'summary.modelsum'
as.data.frame(
x,
...,
text = x$text,
term.name = x$term.name,
adjustment.names = x$adjustment.names,
width = NULL,
min.split = NULL,
list.ok = FALSE
)Arguments
- object
A
modelsumobject.- ...
For
summary.modelsum, other arguments passed toas.data.frame.modelsum. Foras.data.frame.summary.modelsum, "width" and "min.split" are passed tosmart.split. Forprinting the summary object, these are passed to bothas.data.frame.summary.modelsumandkable.- labelTranslations
A named list (or vector) where the name is the label in the output to be replaced in the pretty rendering by the character string value for the named element of the list, e.g.,
list(age = "Age(Years)", meansd = "Mean(SD)").- text
An argument denoting how to print the summary to the screen. Default is
FALSE(show markdown output).TRUEandNULLoutput a text-only version, with the latter avoiding all formatting."html"uses the HTML tag<strong>instead of the markdown formatting, and"latex"uses the LaTeX command\textbf.- title
Title/caption for the table, defaulting to
NULL(no title). Passed tokable. Can be length > 1 if the more than one table is being printed.- term.name
A character vector denoting the column name for the "terms" column. It should be the same length as the number of tables or less (it will get recycled if needed). The special value
TRUEwill use the y-variable's label for each table.- adjustment.names
Logical, denoting whether the names of the adjustment models should be printed.
- x
An object of class
"summary.modelsum".- width, min.split
Passed to
smart.splitfor formatting of the "term" column.- list.ok
If the object has multiple by-variables, is it okay to return a list of data.frames instead of a single data.frame? If
FALSEbut there are multiple by-variables, a warning is issued.
