View source: R/report.lavaan.R
report.lavaan | R Documentation |
Create a report for lavaan
objects.
## S3 method for class 'lavaan'
report(x, ...)
## S3 method for class 'lavaan'
report_performance(x, table = NULL, ...)
x |
Object of class |
... |
Arguments passed to or from other methods. |
table |
Provide the output of |
An object of class report()
.
Specific components of reports (especially for stats models):
report_table()
report_parameters()
report_statistics()
report_effectsize()
report_model()
report_priors()
report_random()
report_performance()
report_info()
report_text()
Other types of reports:
report_system()
report_packages()
report_participants()
report_sample()
report_date()
Methods:
as.report()
Template file for supporting new models:
report.default()
# Structural Equation Models (SEM)
library(lavaan)
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
suppressWarnings(report_table(model))
suppressWarnings(report_performance(model))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.