Prints tables (i.e. data frame) in different output formats.
print_md()
is a alias for display(format = "markdown")
.
# S3 method for parameters_model
display(
object,
format = "markdown",
pretty_names = TRUE,
split_components = TRUE,
select = NULL,
digits = 2,
ci_digits = 2,
p_digits = 3,
...
)# S3 method for parameters_stan
display(
object,
split_components = TRUE,
select = NULL,
format = "markdown",
...
)
# S3 method for parameters_sem
display(
object,
format = "markdown",
digits = 2,
ci_digits = 2,
p_digits = 3,
...
)
# S3 method for parameters_efa_summary
display(object, format = "markdown", digits = 3, ...)
# S3 method for parameters_efa
display(
object,
format = "markdown",
digits = 2,
sort = FALSE,
threshold = NULL,
labels = NULL,
...
)
# S3 method for equivalence_test_lm
display(object, format = "markdown", digits = 2, ...)
# S3 method for parameters_model
format(
x,
pretty_names = TRUE,
split_components = TRUE,
select = NULL,
digits = 2,
ci_digits = 2,
p_digits = 3,
ci_width = NULL,
ci_brackets = NULL,
format = NULL,
...
)
# S3 method for parameters_model
print_md(
x,
pretty_names = TRUE,
split_components = TRUE,
select = NULL,
digits = 2,
ci_digits = 2,
p_digits = 3,
...
)
An object returned by model_parameters()
,
simulate_parameters()
,
equivalence_test()
or
principal_components()
.
String, indicating the output format. Currently, only
"markdown"
is supported.
Return "pretty" (i.e. more human readable) parameter names.
Logical, if TRUE
(default), For models with
multiple components (zero-inflation, smooth terms, ...), each component is
printed in a separate table. If FALSE
, model parameters are printed
in a single table and a Component
column is added to the output.
Character vector (or numeric index) of column names that should
be printed. If NULL
(default), all columns are printed. The shortcut
select = "minimal"
prints coefficient, confidence intervals and p-values,
while select = "short"
prints coefficient, standard errors and p-values.
Number of decimal places for numeric values (except confidence intervals and p-values).
Number of decimal places for confidence intervals.
Number of decimal places for p-values. May also be "scientific"
for scientific notation of p-values.
Arguments passed to or from other methods.
Sort the loadings.
A value between 0 and 1 indicates which (absolute) values from the loadings should be removed. An integer higher than 1 indicates the n strongest loadings to retain. Can also be "max"
, in which case it will only display the maximum loading per variable (the most simple structure).
A character vector containing labels to be added to the loadings data. Usually, the question related to the item.
An object returned by model_parameters()
.
Minimum width of the returned string for confidence intervals. If not NULL
and width is larger than the string's length, leading whitespaces are added to the string. If width="auto"
, width will be set to the length of the longest string.
Logical, if TRUE
(default), CI-values are encompassed in square brackets (else in parentheses).
A character vector. If format = "markdown"
, the return value
will be a character vector in markdown-table format.
display()
is useful when the table-output from functions,
which is usually printed as formatted text-table to console, should
be formatted for pretty table-rendering in markdown documents, or if
knitted from rmarkdown to PDF or Word files. See
vignette
for examples.
# NOT RUN {
model <- lm(mpg ~ wt + cyl, data = mtcars)
mp <- model_parameters(model)
display(mp)
# }
Run the code above in your browser using DataLab