Uploaded May 2021 | Updated September 2026, 2 weeks ago
This video is mainly for Stata nerds like myself (who for some reason) really like syntax :)
I provide a walkthrough of a strategy for obtaining bootstrap confidence intervals around goodness of fit measures when you are performing SEM using Stata Version 17. The example involves a path analysis model. In the video I talk through a do-file where I go over code I wrote for the model I was running; however, you can also generate the code necessary for bootstrapping by using graphical user interface (GUI). Simply take the code from the output (with any remaining modifications to make sure the syntax is laid out correctly) and plug it into the do-file.
You can download a copy of the data here:
drive.google.com/file/d/1YisZj7IqObhPExjFxQ1XJLqZcPh1ylSA/view
You can obtain a copy of the referenced do-file here:
drive.google.com/file/d/1zsQyL65fFbCSDAZShya-ewaXhu8oJ6wy/view
A little side note: It is possible for TLI to be negative or greater than 1 (see e.g. Shi et al. (2018); journals.sagepub.com/doi/pdf/10.1177/0013164418783530). As such, it is possible that you could end up with a lower bound for your confidence interval that is negative or upper bound greater than 1.
*Shi, D., L.A., Lee, & Maydeu-Olivares, A. (2018). Understanding the model effect size on SEM fit indices. Educational and Psychological Measurement, 79, 310-334.
This video is mainly for Stata nerds like myself (who for some reason) really like syntax :)
I provide a walkthrough of a strategy for obtaining bootstrap confidence intervals around goodness of fit measures when you are performing SEM using Stata Version 17. The example involves a path analysis model. In the video I talk through a do-file where I go over code I wrote for the model I was running; however, you can also generate the code necessary for bootstrapping by using graphical user interface (GUI). Simply take the code from the output (with any remaining modifications to make sure the syntax is laid out correctly) and plug it into the do-file.
You can download a copy of the data here:
drive.google.com/file/d/1YisZj7IqObhPExjFxQ1XJLqZcPh1ylSA/view
You can obtain a copy of the referenced do-file here:
drive.google.com/file/d/1zsQyL65fFbCSDAZShya-ewaXhu8oJ6wy/view
A little side note: It is possible for TLI to be negative or greater than 1 (see e.g. Shi et al. (2018); journals.sagepub.com/doi/pdf/10.1177/0013164418783530). As such, it is possible that you could end up with a lower bound for your confidence interval that is negative or upper bound greater than 1.
*Shi, D., L.A., Lee, & Maydeu-Olivares, A. (2018). Understanding the model effect size on SEM fit indices. Educational and Psychological Measurement, 79, 310-334.










