Basic SEM Diagram
The adoption group are not statisticians, so it would help them understand your work if you could create a picture of their model. The previous two-factor model of goodstory and inperson has been loaded for you.
Create a basic plot of the model using the semPlot library and the semPaths() function with the default output. The model plot should have two circles for the latents, and six squares for the manifest variables.
Deze oefening maakt deel uit van de cursus
Structural Equation Modeling with lavaan in R
Oefeninstructies
- Load the
semPlotlibrary. - Use the
semPaths()function where the object is saved analyzed modeladopt.fit.
Praktische interactieve oefening
Probeer deze oefening eens door deze voorbeeldcode in te vullen.
# Load the semPlot library
___
# Create a default picture
___