semPlotModel: SEM model representation

semPlotModelR Documentation

SEM model representation

Description

Methods to read a SEM object and return a semPlotModel-class object.

Usage

## Default S3 method:
semPlotModel(object, ...)
## S3 method for class 'lm'
semPlotModel(object, ...)
## S3 method for class 'principal'
semPlotModel(object, ...)
## S3 method for class 'psych'
semPlotModel(object, cut, ...)
## S3 method for class 'princomp'
semPlotModel(object, ...)
## S3 method for class 'loadings'
semPlotModel(object, ...)
## S3 method for class 'factanal'
semPlotModel(object, ...)

## S3 method for class 'lisrel'
semPlotModel(object, ...)

## S3 method for class 'mplus.model'
semPlotModel(object, mplusStd = c("std", "stdy", "stdyx"), ...)
## S3 method for class 'sem'
semPlotModel(object, ...)
## S3 method for class 'msem'
semPlotModel(object, ...)
## S3 method for class 'msemObjectiveML'
semPlotModel(object, ...)
## S3 method for class 'efaList'
semPlotModel(object, which, ...)
## S3 method for class 'psem'
semPlotModel(object, ...)
## S3 method for class 'wls'
semPlotModel(object, ...)
## S3 method for class 'seminr_model'
semPlotModel(object, ...)
## S3 method for class 'cSEMResults'
semPlotModel(object, ...)
semPlotModel_Amos(object)
semPlotModel_Onyx(object)
semPlotModel_lavaanModel(object, ...)
semPlotModel_psychonetrics(object, delta = c("variance", "ignore", "show"), ...)
semPlotModel_lavaan_mi(object, ...)

Arguments

object

An object contaning the result of a SEM or GLM analysis, or a string contaning the file path to the output file of a SEM program. Or a Lavaan model.

mplusStd

What standardization to use in Mplus models?

cut

Loadings with absolute value below this cutoff are omitted when importing psych fa/omega objects. Defaults to 0 (keep all).

which

Which solution to import from a lavaan efa() result (an efaList): a numeric index or a name such as "nf2". Defaults to the last (highest number of factors).

model

The original sem model (used in cvregsem)

delta

How to display the Delta scaling parameters of GGM-parameterized blocks in psychonetrics models. "variance" (default) replaces them by the implied variances (the diagonal of \Delta (I - \Omega)^{-1} \Delta), which are directly interpretable; "ignore" omits them; "show" displays the raw scaling parameters as self-loops.

...

Arguments sent to 'lisrelModel', not used in other methods.

Details

A detailed overview of which packages are supported and what is supported for each of them will soon be on my website.

psychonetrics models (semPlotModel_psychonetrics, dispatched automatically by semPlotModel) are supported for the lvm and varcov frameworks, including all subtypes of their (co)variance structures: "cov", "ggm" (displayed as undirected network edges), "chol" and "prec" (both displayed as implied covariances). The development version of psychonetrics (remotes::install_github("SachaEpskamp/psychonetrics")) is recommended.

Pooled multiple-imputation models from the lavaan.mi package (semPlotModel_lavaan_mi, dispatched automatically) are displayed with Rubin's-rules pooled estimates and pooled standardized solutions; observed and implied covariance matrices are not defined for pooled fits, so semCors is unavailable for them.

PLS-SEM models from seminr (estimate_pls()) and cSEM (csem()) are supported: reflective constructs display directed loadings, composite (mode B / formative) constructs display weight arrows into the construct; PLS estimates are standardized. metaSEM stage-2 models (tssem2()/wls()) are supported through metaSEM's meta2semPlot(); stage-1 pooling objects give an informative error. umx models (umxRAM() returns an MxRAMModel) are supported via the OpenMx importer. psych's fa() and omega() outputs are supported (omega as a bifactor structure; pair it with semPaths(..., bifactor = 'g', layout = 'tree2')); principal() was already supported.

piecewiseSEM's psem() models are supported: directed paths from the component models (with piecewiseSEM's standardized estimates in the std column) and correlated errors (%~~%) as bidirectional edges.

Value

A "semPlotModel" object. See link{semPlotModel-class}

Author(s)

Sacha Epskamp <mail@sachaepskamp.com>

See Also

semPaths semCors semPlotModel-class


semPlot documentation built on July 18, 2026, 1:06 a.m.