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/bayesian_sem_workflow.ipynb
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1752,7 +1752,7 @@
1752
1752
"\n",
1753
1753
"Bollen argues as follows:\n",
1754
1754
"\n",
1755
-
"> As I have just explained, we cannot isolate a dependent variable from all influences but a single explanatory variable, so it is impossible to make definitive statements about causes. We replace perfect isolation with pseudo-isolation by assuming that the disturbance (i.e., the composite of all omitted determinants) is uncorrelated with the exogenous variables of an equation. - Bollen in _Structural Equations with Latent Variables_ pg45\n",
1755
+
"> [...], we cannot isolate a dependent variable from all influences but a single explanatory variable, so it is impossible to make definitive statements about causes. We replace perfect isolation with pseudo-isolation by assuming that the disturbance (i.e., the composite of all omitted determinants) is uncorrelated with the exogenous variables of an equation. - Bollen in _Structural Equations with Latent Variables_ pg45\n",
1756
1756
"\n",
1757
1757
"This is a claim of conditional independence which licenses the causal interpretation of the the arrows in the below plot. The fact that the latent relations operate a higher level of abstraction makes it easier to postulate these \"clean\" direct paths between constructs. The model makes an argument - to have proprely measured the latent constructs, and isolated their variation - to support the causal claim. Criticisms of the model proceed by assessing how compelling these postulates are in the context of the fitted model.\n",
1758
1758
"\n",
@@ -4393,11 +4393,13 @@
4393
4393
"id": "adda74c2",
4394
4394
"metadata": {},
4395
4395
"source": [
4396
-
"The sampler diagnostics also seem healthy. We can also pull out the indirect and direct effects. This is one of the biggest pay-offs for SEM modelling. We've done the work of assessing measurement error and building an abstraction layer of __what-we-care-about__ over the observed indicators. We've considered various structures of the inferential relationships and isolated those direct effects from undue confounding influences. \n",
4396
+
"The sampler diagnostics also seem healthy.\n",
4397
+
"\n",
4398
+
"We can also pull out the indirect and direct effects. This is one of the biggest pay-offs for SEM modelling. We've done the work of assessing measurement error and building an abstraction layer of __what-we-care-about__ over the observed indicators. We've considered various structures of the inferential relationships and isolated those direct effects from undue confounding influences. Now we can pull out the impact of mediation and moderation.\n",
4397
4399
"\n",
4398
4400
"## Comparing Models\n",
4399
4401
"\n",
4400
-
"Now we can pull out the impact of mediation and moderation."
4402
+
"Let's first compare the model implied total effects, and the degrees of moderation between constructive and dysfunctional habits of thought on the satisfaction outcome."
4401
4403
]
4402
4404
},
4403
4405
{
@@ -4561,7 +4563,7 @@
4561
4563
"source": [
4562
4564
"\n",
4563
4565
"\n",
4564
-
"Just for clarity, we'll pull together the residual plots. "
4566
+
"We'll also pull together the model implied residuals on the correlation coefficients. This will help us see how whether our different model structures are consistently deriving similar stories about the data generating relationships. "
4565
4567
]
4566
4568
},
4567
4569
{
@@ -4607,7 +4609,7 @@
4607
4609
"id": "4337a785",
4608
4610
"metadata": {},
4609
4611
"source": [
4610
-
"and align the parameter estimates. Here we can see that the models are substantially similar in key dimensions; the magnitude and direction of the implied effects are similar across each model. This is an important observation. It is this kind of robustness to model specification that we want to see in this kind of iterative modelling. This should give us confidence that the model is well specified and picking up on the actual relationships between these latent constructs. "
4612
+
"Here we can see that the models are substantially similar in key dimensions; the magnitude and direction of the implied effects are similar across each model. This is an important observation. It is this kind of robustness to model specification that we want to see in this kind of iterative modelling. This should give us confidence that the model is well specified and picking up on the actual relationships between these latent constructs. "
4611
4613
]
4612
4614
},
4613
4615
{
@@ -4651,7 +4653,7 @@
4651
4653
"id": "e2f5f307",
4652
4654
"metadata": {},
4653
4655
"source": [
4654
-
"But sensitivity analysis is one approach, we can be even more clinical in our assessment of these models. We can perform parameter recovery exercises to properly validate that our model specification can identify the structural parameters of our complex SEM architecture. "
4656
+
"This kind of sensitivity analysis is one approach to model validation, we can be even more clinical in our assessment of these models. We can perform parameter recovery exercises to properly validate that our model specification can identify the structural parameters of our complex SEM architecture. "
Copy file name to clipboardExpand all lines: examples/case_studies/bayesian_sem_workflow.myst.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -647,7 +647,7 @@ The next expansionary move in SEM modelling is to consider the relations between
647
647
648
648
Bollen argues as follows:
649
649
650
-
> As I have just explained, we cannot isolate a dependent variable from all influences but a single explanatory variable, so it is impossible to make definitive statements about causes. We replace perfect isolation with pseudo-isolation by assuming that the disturbance (i.e., the composite of all omitted determinants) is uncorrelated with the exogenous variables of an equation. - Bollen in _Structural Equations with Latent Variables_ pg45
650
+
> [...], we cannot isolate a dependent variable from all influences but a single explanatory variable, so it is impossible to make definitive statements about causes. We replace perfect isolation with pseudo-isolation by assuming that the disturbance (i.e., the composite of all omitted determinants) is uncorrelated with the exogenous variables of an equation. - Bollen in _Structural Equations with Latent Variables_ pg45
651
651
652
652
This is a claim of conditional independence which licenses the causal interpretation of the the arrows in the below plot. The fact that the latent relations operate a higher level of abstraction makes it easier to postulate these "clean" direct paths between constructs. The model makes an argument - to have proprely measured the latent constructs, and isolated their variation - to support the causal claim. Criticisms of the model proceed by assessing how compelling these postulates are in the context of the fitted model.
653
653
@@ -938,11 +938,13 @@ The posterior predictive distribution of the model implied residuals seems compa
938
938
plot_diagnostics(idata_sem_model_v3, parameters);
939
939
```
940
940
941
-
The sampler diagnostics also seem healthy. We can also pull out the indirect and direct effects. This is one of the biggest pay-offs for SEM modelling. We've done the work of assessing measurement error and building an abstraction layer of __what-we-care-about__ over the observed indicators. We've considered various structures of the inferential relationships and isolated those direct effects from undue confounding influences.
941
+
The sampler diagnostics also seem healthy.
942
+
943
+
We can also pull out the indirect and direct effects. This is one of the biggest pay-offs for SEM modelling. We've done the work of assessing measurement error and building an abstraction layer of __what-we-care-about__ over the observed indicators. We've considered various structures of the inferential relationships and isolated those direct effects from undue confounding influences. Now we can pull out the impact of mediation and moderation.
942
944
943
945
## Comparing Models
944
946
945
-
Now we can pull out the impact of mediation and moderation.
947
+
Let's first compare the model implied total effects, and the degrees of moderation between constructive and dysfunctional habits of thought on the satisfaction outcome.
946
948
947
949
```{code-cell} ipython3
948
950
:tags: [hide-input]
@@ -1057,7 +1059,7 @@ Even though constructive thought processes have a directly positive effect on jo
1057
1059
1058
1060
1059
1061
1060
-
Just for clarity, we'll pull together the residual plots.
1062
+
We'll also pull together the model implied residuals on the correlation coefficients. This will help us see how whether our different model structures are consistently deriving similar stories about the data generating relationships.
1061
1063
1062
1064
```{code-cell} ipython3
1063
1065
import seaborn as sns
@@ -1075,7 +1077,7 @@ for idata, model_name, ax in zip(idatas, model_names, axs):
1075
1077
ax.set_title(f"Residuals for {model_name}", fontsize=25);
1076
1078
```
1077
1079
1078
-
and align the parameter estimates. Here we can see that the models are substantially similar in key dimensions; the magnitude and direction of the implied effects are similar across each model. This is an important observation. It is this kind of robustness to model specification that we want to see in this kind of iterative modelling. This should give us confidence that the model is well specified and picking up on the actual relationships between these latent constructs.
1080
+
Here we can see that the models are substantially similar in key dimensions; the magnitude and direction of the implied effects are similar across each model. This is an important observation. It is this kind of robustness to model specification that we want to see in this kind of iterative modelling. This should give us confidence that the model is well specified and picking up on the actual relationships between these latent constructs.
ax[0].set_title("Comparing Factor Structures \n and Path Coefficients");
1092
1094
```
1093
1095
1094
-
But sensitivity analysis is one approach, we can be even more clinical in our assessment of these models. We can perform parameter recovery exercises to properly validate that our model specification can identify the structural parameters of our complex SEM architecture.
1096
+
This kind of sensitivity analysis is one approach to model validation, we can be even more clinical in our assessment of these models. We can perform parameter recovery exercises to properly validate that our model specification can identify the structural parameters of our complex SEM architecture.
0 commit comments