LoslegenKostenlos loslegen

Diagram the Hierarchical Model

Data visualization allows you to examine and share completed models, and the semPlot package is an excellent tool for creating these diagrams. Using wais.fit3 from the previous exercise, diagram the hierarchical model with options to help reading clarity.

Diese Übung ist Teil des Kurses

Structural Equation Modeling with lavaan in R

Kurs anzeigen

Anleitung zur Übung

  • Create a diagram that includes labels and shading of the standardized loadings.
  • Shade the standardized loadings in navy.
  • Use the tree layout with 1 option for the rotation.

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

# Load the library
library(semPlot)

# Update the default picture
semPaths(object = ___,
         layout = ___,
         rotation = ___,
         whatLabels = ___,
         edge.label.cex = 1,
         what = ___,
         edge.color = ___)
Code bearbeiten und ausführen