Skip to content

Commit 64799e9

Browse files
committed
full run with lavaan syntax noted
Signed-off-by: Nathaniel <[email protected]>
1 parent 62d788b commit 64799e9

File tree

2 files changed

+1125
-1078
lines changed

2 files changed

+1125
-1078
lines changed

examples/case_studies/CFA_SEM.ipynb

Lines changed: 1113 additions & 1077 deletions
Large diffs are not rendered by default.

examples/case_studies/CFA_SEM.myst.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,18 @@ This hints at a variety of measurement model misspecification and should force u
375375

376376
## Full Measurement Model
377377

378-
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 where we only admit three metrics load on each construct. The choice of which metric loads on the latent construct is determined in our case by the constructs each measure is intended to measure.
378+
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 where we only admit three metrics load on each construct. The choice of which metric loads on the latent construct is determined in our case by the constructs each measure is intended to measure. In the typical `lavaan` syntax we might write the model as follows:
379+
380+
381+
```
382+
SUP_Parents =~ sup_parents_p1 + sup_parents_p2 + sup_parents_p3
383+
SUP_Friends =~ sup_friends_p1 + sup_friends_p2 + sup_friends_p3
384+
SE_Academic =~ se_acad_p1 + se_acad_p2 + se_acad_p3
385+
SE_Social =~ se_social_p1 + se_social_p2 + se_social_p3
386+
LS =~ ls_p1 + ls_p2 + ls_p3
387+
```
388+
389+
where the `=~` syntax denotes "is measured by" relation. It is the manner in which each of these indicator variables is determined by the latent construct that we seek to estimate when fitting a measurement model of this type.
379390

380391
```{code-cell} ipython3
381392
drivers = [

0 commit comments

Comments
 (0)