Skip to contents

Building a diagram by hand

Typed vertices, edges, and plates, assembled and validated into a UMG object.

umg_model()
Assemble and validate a Unified Model Graph
umg_node()
Create a UMG vertex
umg_edge()
Create a UMG edge
umg_plate()
Create a UMG plate

Motif builders: measurement

One-line builders for common measurement models.

umg_factor()
Reflective factor (measurement) motif
umg_bifactor()
Bifactor measurement motif
umg_secondorder()
Second-order factor motif
umg_esem()
Exploratory structural equation model motif
umg_formative()
Formative (composite) measurement motif
umg_mimic()
MIMIC (multiple-indicator multiple-cause) motif

Motif builders: item response and latent classes

umg_irt()
Item response theory motif (crossed persons x items)
umg_dcm()
Diagnostic classification model (DCM) motif
umg_lca()
Latent class motif
umg_mixture()
Add a finite-mixture wrapper to an existing UMG

Motif builders: structural, longitudinal, and network models

umg_sem()
General structural equation model builder
umg_mediation()
Mediation motif
umg_growth()
Latent growth-curve motif
umg_riclpm()
Random-intercept cross-lagged panel model (RI-CLPM) motif
umg_network()
Undirected network (Gaussian graphical model) motif

From fitted model objects

Build a UMG from a model specified or fitted in another package.

umg_from_OpenMx()
Build a UMG from an OpenMx RAM model
umg_from_blavaan()
Build a UMG from a blavaan model
umg_from_brms()
Build a UMG from a brms model
umg_from_lavaan()
Build a UMG from a lavaan model
umg_from_lmer()
Build a UMG from an lme4 formula
umg_from_mirt()
Build a UMG from a fitted mirt model
umg_from_qgraph()
Build a UMG from a qgraph object or weighted adjacency matrix

Reading a diagram

Well-formedness, identification, and the conditional independencies a diagram implies.

umg_validate()
Validate well-formedness of a UMG
umg_identify()
Identification summary for a UMG
umg_check_scaling()
Check latent-variable scaling marks
umg_count_parameters()
Graphical parameter count (t-rule)
umg_labelswitching()
Flag label-switching symmetry in mixtures
umg_dsep()
Test d-separation in a UMG
umg_implied_ci()
Enumerate basis-set implied conditional independencies
print(<umg_identification>)
Print a UMG identification summary

Rendering and export

plot(<umg>)
Plot a UMG with grid graphics
umg_ggplot() autoplot(<umg>)
Render a UMG with ggplot2
umg_theme()
Construct a UMG rendering theme
umg_layout()
Compute a layered layout for a UMG
umg_save()
Save a UMG diagram to a file
umg_to_tikz()
Export a UMG as TikZ code
umg_to_dot()
Export a UMG as Graphviz DOT code
umg_render_dot()
Render a UMG through DiagrammeR (Graphviz)
umg_to_lavaan()
Generate lavaan model syntax from a UMG

Exploratory displays implied by the model

umg_eda_scaffold()
Generate exploratory display scaffolds from a UMG
umg_caterpillar()
Caterpillar (shrinkage) plot of cluster-level estimates

Inspecting a UMG object

print(<umg>)
Print a Unified Model Graph
summary(<umg>) print(<summary.umg>)
Summarise a UMG
as.data.frame(<umg>)
Coerce a UMG to a data frame