Skip to content

Commit b2ef38d

Browse files
authored
Merge pull request #48 from leonardozaggia/main
Interpretation changes + recreation of plots
2 parents efb1cef + 8258557 commit b2ef38d

8 files changed

Lines changed: 23 additions & 18 deletions

File tree

book/statistics/5_Path_Modelling/2_Example.md

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ width: 80%
3131

3232
## Variables
3333

34-
- Physical Health ($X$): The number of illnesses experienced in the last 12 months.
34+
- Physical Health ($X$): The number of illnesses experienced in the last 12 months (higher values indicate poorer physical health).
3535
- Functional Health ($Y_1$): The sum score of the SF-36 questionnaire, which measures functional health.
3636
- Subjective Health ($Y_2$): Self-reported subjective health, reflecting how individuals perceive their overall health.
3737

@@ -102,7 +102,7 @@ The first ouput we looked at after defining the model was `info`, which contains
102102
- **Objective Function**: Maximum Likelihood with Weights (MLW).
103103
- **Optimization Algorithm**: Sequential Least Squares Quadratic Programming (SLSQP).
104104
- **Iterations**: The model converged after 14 iterations.
105-
- **Objective Value**: 0.000, indicating no detectable discrepancy between observed and predicted covariance matrices.
105+
- **Objective Value**: 0.000, indicating that the model-implied covariance matrix closely reproduces the observed covariance matrix under the chosen estimation method.
106106

107107
### Parameter Estimates
108108

@@ -120,7 +120,7 @@ The first ouput we looked at after defining the model was `info`, which contains
120120

121121
### Standardized Coefficients
122122

123-
Standardized coefficients (`Est.Std`) allow us to compare the relative influence of each predictor. They can be interpreted similarly to correlation coefficients, indicating the strength and direction of relationships on a standardized scale. However, unlike correlations, they reflect causal relationships within the model's structure and account for both direct and indirect effects.
123+
Standardized coefficients (`Est.Std`) allow us to compare the relative influence of each predictor on a common scale. They can be interpreted similarly to correlation coefficients in terms of strength and direction. However, unlike correlations, they represent *model-implied directional associations* that depend on the assumed causal structure of the model. By themselves, they do not establish causality, but quantify effects conditional on the specified paths.
124124

125125
- **Physical Health → Functional Health**: **-0.451** (strong negative effect).
126126
- **Physical Health → Subjective Health**: **-0.244** (moderate negative effect).
@@ -140,15 +140,19 @@ Standardized coefficients (`Est.Std`) allow us to compare the relative influence
140140

141141
### Fit Metrics
142142

143-
- **Chi-Square**: **0.0001** (p = **0.9915**), excellent fit.
144-
- **CFI**: **1.0008**, **TLI**: **1.0033** (indicative of possible overfit).
145-
- **RMSEA**: **0**, **GFI/AGFI**: **1.0**, perfect fit.
143+
- **Chi-Square**: **0.0001** (p = **0.9915**).
144+
- **CFI**: **1.0008**, **TLI**: **1.0033**.
145+
- **RMSEA**: **0**, **GFI/AGFI**: **1.0**.
146146
- **AIC**: **10**, useful for model comparison.
147147

148-
### Overfitting Concerns
148+
### Interpretation of Model Fit
149149

150-
- High fit indices and low Chi-Square suggest potential overfitting.
151-
- **Recommendation**: Test on an independent dataset or simplify the model.
150+
The model shows near-perfect fit indices. However, this should be interpreted with caution. The model has very few degrees of freedom (DoF = 1), meaning that global fit indices are not very informative in this context. In small or nearly just-identified models, it is common to observe extremely high fit values, including CFI and TLI values above 1 and RMSEA values close to zero.
151+
152+
Therefore, the excellent fit does not necessarily indicate overfitting, but rather reflects the simplicity and identification properties of the model.
153+
154+
**Recommendation:**
155+
Model evaluation should focus primarily on parameter estimates and theoretical plausibility. External validation using an independent dataset can still be useful to assess generalizability.
152156

153157

154158
## Interpretation
@@ -161,20 +165,21 @@ Standardized coefficients (`Est.Std`) allow us to compare the relative influence
161165

162166
### Implications
163167

164-
- **Mediation**: Functional health mediates the effect of physical health on subjective health. In other words, apart from directly influencing subjective health, physical health also influences subjective health by influencing functional health (indirect effect).
168+
- **Mediation**: The pattern of results is consistent with *partial mediation* by functional health. Physical health shows both a direct association with subjective health and an indirect association via functional health. A formal test of the indirect effect would be required to statistically confirm mediation.
165169
- **Variance Explained**: Functional health (20.6%), subjective health (39.7%). Other factors likely influence outcomes. These percentages represent **R-squared** values (explained variance) and are calculated as 1 minus the standardized residual variance.
166170

167171
### Limitations
168172

169-
- **Overfitting**: Model fit metrics suggest overfitting risks.
173+
- **Limited Model Complexity**: Due to the small number of variables and low degrees of freedom, global fit indices are of limited diagnostic value.
170174
- **Self-reported Measures**: Subjective health may suffer from biases (e.g., recall bias).
171175
- **Large Unexplained Variance**: Additional predictors (e.g., social factors) could enhance the model.
172176

173177

174178
```{admonition} Caution
175179
:class: warning
176-
While the model demonstrates significant and meaningful relationships, the almost perfect fit (e.g., Chi-Square value close to zero, p-value very high, and objective value of 0.000) raises a valid question: **Is the model overfitting?**
180+
While the model demonstrates significant and meaningful relationships, the almost perfect fit (e.g., Chi-Square value close to zero and very high p-value) primarily reflects the simplicity and low degrees of freedom of the model rather than clear evidence of overfitting.
181+
182+
- In small or nearly just-identified models, global fit indices tend to be inflated and should not be overinterpreted.
183+
- Generalizability is better assessed through theoretical justification and, where possible, replication in an independent dataset.
177184
178-
- Overfitting could mean that the model may not generalize well to other datasets.
179-
- To address this, consider testing the model on a different dataset or simplifying it to ensure robustness.
180185
```
-7.14 KB
Loading

book/statistics/7_CFA_SEM/data/cfa_plot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ digraph G {
22
overlap=scale splines=true
33
edge [fontsize=12]
44
node [fillcolor="#cae6df" shape=circle style=filled]
5-
speed [label=speed]
65
text [label=text]
6+
speed [label=speed]
77
visual [label=visual]
88
node [shape=box style=""]
99
x1 [label=x1]
@@ -24,7 +24,7 @@ digraph G {
2424
speed -> x7 [label=1.000]
2525
speed -> x8 [label="1.180\np-val: 0.00"]
2626
speed -> x9 [label="1.083\np-val: 0.00"]
27-
text -> speed [label="0.174\np-val: 0.00" dir=both style=dashed]
2827
visual -> speed [label="0.262\np-val: 0.00" dir=both style=dashed]
28+
speed -> text [label="0.174\np-val: 0.00" dir=both style=dashed]
2929
visual -> text [label="0.408\np-val: 0.00" dir=both style=dashed]
3030
}
11.2 KB
Binary file not shown.

book/statistics/7_CFA_SEM/data/cfa_plot2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ digraph G {
22
overlap=scale splines=true
33
edge [fontsize=12]
44
node [fillcolor="#cae6df" shape=circle style=filled]
5-
speed [label=speed]
65
text [label=text]
6+
speed [label=speed]
77
visual [label=visual]
88
node [shape=box style=""]
99
x1 [label=x1]
11.2 KB
Binary file not shown.

book/statistics/7_CFA_SEM/data/sem_plot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ digraph G {
22
overlap=scale splines=true
33
edge [fontsize=12]
44
node [fillcolor="#cae6df" shape=circle style=filled]
5-
speed [label=speed]
65
visual [label=visual]
6+
speed [label=speed]
77
node [shape=box style=""]
88
x1 [label=x1]
99
x2 [label=x2]
10.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)