table_fit: Print model fit table formatted for publication

View source: R/results-table_fit.R

table_fitR Documentation

Print model fit table formatted for publication

Description

Takes a model object, extracts model fit information, and formats it as a publication-ready table.

Usage

table_fit(x, ...)

Arguments

x

A model object for which a method exists.

...

Arguments passed to other functions.

Value

A data.frame of formatted results.

Author(s)

Caspar J. van Lissa

See Also

Other Reporting tools: conf_int(), est_sig(), table_prob(), table_results()

Examples

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_fit(fit)

cjvanlissa/tidySEM documentation built on March 16, 2024, 6:35 a.m.