View source: R/results-table_results.R
table_results | R Documentation |
Takes a model object, and formats it as a publication-ready table.
table_results(
x,
columns = c("label", "est_sig", "se", "pval", "confint", "group", "level"),
digits = 2,
format_numeric = TRUE,
...
)
x |
A model object for which a method exists. |
columns |
A character vector of columns to retain from the results
section. If this is set to |
digits |
Number of digits to round to when formatting numeric columns. |
format_numeric |
Logical, indicating whether or not to format numeric
columns. Defaults to |
... |
Logical expressions used to filter the rows of results returned. |
A data.frame of formatted results.
Caspar J. van Lissa
Other Reporting tools:
conf_int()
,
est_sig()
,
table_fit()
,
table_prob()
library(lavaan)
HS.model <- ' visual =~ x1 + x2 + x3
textual =~ x4 + x5 + x6
speed =~ x7 + x8 + x9 '
fit <- cfa(HS.model,
data = HolzingerSwineford1939,
group = "school")
table_results(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.