You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/case_studies/CFA_SEM.myst.md
+65-5Lines changed: 65 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -252,7 +252,7 @@ del idata
252
252
253
253
### Intermediate Cross-Loading Model
254
254
255
-
The idea of a measurment is maybe a little opaque when we only see models that fit well. Instead we want to briefly show how a in-apt measurement model gets reflected in the estimated parameters for the factor loadings. Here we specify a measurement model which attempts to couple the `se_social` and `sup_parents` indicators and bundle them into the same factor.
255
+
The idea of a measurment is maybe a little opaque when we only see models that fit well. Instead we want to briefly show how an in-apt measurement model gets reflected in the estimated parameters for the factor loadings. Here we specify a measurement model which attempts to couple the `se_social` and `sup_parents` indicators and bundle them into the same factor.
256
256
257
257
```{code-cell} ipython3
258
258
coords = {
@@ -352,19 +352,23 @@ Again our model samples well but the parameter estimates suggest that there is s
This hints at a variety of measurement model misspecification and should force us back to the drawing board.
364
+
This hints at a variety of measurement model misspecification and should force us back to the drawing board. An appropriate measurement model maps the indicator variables to a consistently defined latent construct that plausibly reflects aspects of the realised indicator metrics.
363
365
364
366
+++
365
367
366
368
## Full Measurement Model
367
369
370
+
With this in mind we'll now specify a full measurement that maps each of our thematically similar indicator metrics to an indicidual latent construct. This mandates the postulation of 5 distinct constructs.
371
+
368
372
```{code-cell} ipython3
369
373
drivers = [
370
374
"se_acad_p1",
@@ -509,7 +513,62 @@ ax.set_title("Residuals between Model Implied and Sample Covariances", fontsize=
0 commit comments