Skip to contents

Create a report for lavaan objects.

Usage

# S3 method for lavaan
report(x, ...)

# S3 method for lavaan
report_performance(x, table = NULL, ...)

Arguments

x

Object of class lavaan.

...

Arguments passed to or from other methods.

table

Provide the output of report_table() to avoid its re-computation.

Value

An object of class report().

Examples

library(report)
# \donttest{
# Structural Equation Models (SEM)
if (require("lavaan") && FALSE) {
  structure <- " ind60 =~ x1 + x2 + x3
                 dem60 =~ y1 + y2 + y3
                 dem60 ~ ind60 "
  model <- lavaan::sem(structure, data = PoliticalDemocracy)
  r <- report(model)
  r
  # summary(r)
  # as.data.frame(r)
  # summary(as.data.frame(r))

  # Specific reports
  report_table(model)
  report_performance(model)
}
#> Loading required package: lavaan
#> This is lavaan 0.6-11
#> lavaan is FREE software! Please report any bugs.
# }