Professional Documents
Culture Documents
Best SEM STATA Menu StataSEMMasterDay2and3 PDF
Best SEM STATA Menu StataSEMMasterDay2and3 PDF
Best SEM STATA Menu StataSEMMasterDay2and3 PDF
S Z T E N D U R
INTRODUCTION TO SEM
W I T H S TATA - D AY 1
E S Q U A N T S TAT I S T I C A L C O N S U LT I N G P T Y LT D
Copyright © 2014 Neil T. Diamond and Ewa M. Sztendur
For academic use only. You may not reproduce or distribute without permission of the authors.
1 Introduction to SEM 5
2 SEM Builder 9
4 Datasets 49
5 Bibliography 57
1 Introduction to SEM
1.2.1 Day 1
1.2.2 Day 2
1.2.3 Day 3
What to do when the model does not fit Modication Indices.
• Use the drop down menu in the Measurement variables box and
click on x1, x2 and x3.
• The values of 1, 0.78, and 1.1 on the arrows from the latent vari-
able to the observed variables are the loadings. These are the re-
gression coefficients of the latent variable “Visual" on the three
observed variables.
• The residual variances for x1, x2, and x3, i.e. the variation not
explained by the latent variable “Visual" are 0.83, 1.06 and 0.63,
respectively.
• The residual variances for x1, x2, and x3, i.e.the proportion of the
variation not explained by the latent variable “Visual" are 0.61, 0.77
and 0.5, respectively.
sem builder 13
3. With the shift key, select the Visual model and move it to the left of
the canvas.
5. In the dialog box change the latent variable to “Textual" and asso-
ciate the observed variables x4, x5 and x6. Press OK.
7. In the dialog box change the latent variable to “Speed" and asso-
ciate the observed variables x7, x8 and x9. Press OK.
9. Click on the Visual latent variable and drag the covariance to the
Textual latent variable. You can adjust the position of the covari-
ance double sided arrow by moving the little circles on the latent
variable ellipses. You can also adjust the curve of the covariance
double sided arrow by moving the circle on the end of the “han-
dle".
10. Do the same for Visual and Speed; and Textual and Speed.
.47
.46
.28
x1 x2 x3 x4 x5 x6 x7 x8 x9
( 1) [ x1 ] V i s u a l = 1
( 2) [ x4 ] T e x t u a l = 1
( 3) [ x7 ] Speed = 1
sem builder 15
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
| OIM
Standardized | Coef . Std . E r r . z P>|z| [95% Conf . I n t e r v a l ]
−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Measurement |
x1 <− |
Visual | .7718802 .0575346 13.42 0.000 .6591144 .8846459
_cons | 4.234926 .1819724 23.27 0.000 3.878267 4.591586
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
x2 <− |
Visual | .4236006 .062738 6.75 0.000 .3006364 .5465649
_cons | 5.179137 .2188139 23.67 0.000 4.75027 5.608005
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
x3 <− |
Visual | .5811323 .0584538 9.94 0.000 .4665651 .6956996
_cons | 1.993107 .0996045 20.01 0.000 1.797886 2.188328
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
x4 <− |
Textual | .8515823 .0226412 37.61 0.000 .8072064 .8959581
_cons | 2.633762 .1218401 21.62 0.000 2.39496 2.872564
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
x5 <− |
Textual | .8550654 .0221923 38.53 0.000 .8115693 .8985616
_cons | 3.369123 .1489219 22.62 0.000 3.077242 3.661005
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
x6 <− |
Textual | .8380101 .0235412 35.60 0.000 .7918702 .88415
_cons | 1.998179 .0997732 20.03 0.000 1.802627 2.193731
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
x7 <− |
Speed | .5695148 .0583107 9.77 0.000 .4552279 .6838017
_cons | 3.848319 .1671013 23.03 0.000 3.520807 4.175832
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
x8 <− |
Speed | .7230442 .0622861 11.61 0.000 .6009657 .8451228
_cons | 5.46731 .2301649 23.75 0.000 5.016195 5.918424
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
x9 <− |
Speed | .6650094 .0660831 10.06 0.000 .5354889 .7945299
_cons | 5.334255 .2249189 23.72 0.000 4.893422 5.775088
−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
var ( e . x1 )| .404201 .0888196 .2627564 .6217867
var ( e . x2 )| .8205625 .0531517 .7227287 .9316398
var ( e . x3 )| .6622852 .0679387 .5416601 .809773
16 introduction to sem with stata - day 1
. e s t a t gof , s t a t s ( a l l )
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Fit s t a t i s t i c | Value Description
−−−−−−−−−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Likelihood r a t i o |
chi2_ms ( 2 4 ) | 85.306 model vs . s a t u r a t e d
p > chi2 | 0.000
chi2_bs (3 6 ) | 918.852 b a s e l i n e vs . s a t u r a t e d
p > chi2 | 0.000
−−−−−−−−−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Population e r r o r |
RMSEA | 0.092 Root mean squared e r r o r o f approximation
90% CI , lower bound | 0.071
upper bound | 0.114
pclose | 0.001 P r o b a b i l i t y RMSEA <= 0 . 0 5
−−−−−−−−−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Information c r i t e r i a |
AIC | 7517.490 Akaike ’ s i n f o r m a t i o n c r i t e r i o n
BIC | 7595.339 Bayesian i n f o r m a t i o n c r i t e r i o n
−−−−−−−−−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
B a s e l i n e comparison |
CFI | 0.931 Comparative f i t index
TLI | 0.896 Tucker −Lewis index
−−−−−−−−−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Size of residuals |
SRMR | 0.065 Standardized r o o t mean squared r e s i d u a l
CD | 0.986 C o e f f i c i e n t of determination
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
. e s t a t gof , s t a t s ( c h i 2 )
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Fit s t a t i s t i c | Value Description
−−−−−−−−−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Likelihood r a t i o |
chi2_ms ( 2 4 ) | 85.306 model vs . s a t u r a t e d
p > chi2 | 0.000
chi2_bs (3 6 ) | 918.852 b a s e l i n e vs . s a t u r a t e d
p > chi2 | 0.000
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
• The baseline model is the model where all the observed variables
are independent.
. e s t a t gof , s t a t s ( rmsea )
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Fit s t a t i s t i c | Value Description
−−−−−−−−−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Population e r r o r |
RMSEA | 0.092 Root mean squared e r r o r o f approximation
90% CI , lower bound | 0.071
upper bound | 0.114
pclose | 0.001 P r o b a b i l i t y RMSEA <= 0 . 0 5
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
. e s t a t gof , s t a t s ( i c )
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Fit s t a t i s t i c | Value Description
−−−−−−−−−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Information c r i t e r i a |
AIC | 7535.490 Akaike ’ s i n f o r m a t i o n c r i t e r i o n
BIC | 7646.703 Bayesian i n f o r m a t i o n c r i t e r i o n
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
(CFI) is given by
χ2M − df M
CFI = 1−
χ2B − dfB
85.306 − 24
= 1− in this case
918.852 − 36
= 0.931
χ2B χ2 χ2
TLI = [ − M ] / [ B − 1]
dfB df M dfB
918.852 85.306 918.852
= [ − ]/[ − 1] in this case
36 24 36
= 0.896
. e s t a t gof , s t a t s ( i n d i c e s )
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Fit s t a t i s t i c | Value Description
−−−−−−−−−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
B a s e l i n e comparison |
CFI | 0.931 Comparative f i t index
TLI | 0.896 Tucker −Lewis index
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
• The SRMR is the ratio of the sum of the squared differences be-
tween the correlations for the observed variable and the correla-
tions implied by our model divided by the number of variances
and covariances. This is given by the formula below
¿
Á ∑i<=j (ri,j − ρi,j )2
SRMR =
Á
À
v(v + 1)/2)
where ri,j is the observed correlation for the ith and jth variables,
ρi,j is the model implied correlation between the ith and jth vari-
ables, and v is the number of variables.
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Fit s t a t i s t i c | Value Description
−−−−−−−−−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
sem builder 21
Size of residuals |
SRMR | 0.060 Standardized r o o t mean squared r e s i d u a l
CD | 0.986 C o e f f i c i e n t of determination
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
2. Now select the covariance arrows and move the positions of the
covariances.To do this for the covariance between ε 2 and ε 7 , for
example, select the covariance and then click Properties . . . . In
the Appearance Tab, check Customize appearance for selected
variables and choose Set custom appearance. In the Results tab,
press Results 1 and select the Distribution between nodes to be
10%. The appropriate values for the covariance between ε 5 and ε 10
should be 90%. For the covariance between ε 3 and ε 8 , we suggest
15% (which you need to type in); and for the covariance between
ε 4 and varepsilon9 we suggest 85%.
( 1 ) [ y1 ] dem60 = 1
( 2 ) [ y5 ] dem65 = 1
( 3 ) [ x1 ] ind60 = 1
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
| OIM
Standardized | Coef . Std . E r r . z P>|z| [95% Conf . I n t e r v a l ]
−−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Structural |
dem60 <− |
ind60 | .4467129 .1046964 4.27 0.000 .2415117 .6519141
−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
dem65 <− |
dem60 | .8852288 .0517686 17.10 0.000 .7837641 .9866934
ind60 | .1822596 .0729762 2.50 0.013 .0392289 .3252904
24 introduction to sem with stata - day 1
−−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Measurement |
y1 <− |
dem60 | .8504258 .0437576 19.43 0.000 .7646626 .9361891
−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
y2 <− |
dem60 | .7171219 .0639886 11.21 0.000 .5917065 .8425373
−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
y3 <− |
dem60 | .7223492 .064376 11.22 0.000 .5961746 .8485238
−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
y4 <− |
dem60 | .8457095 .0444636 19.02 0.000 .7585624 .9328566
−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
y5 <− |
dem65 | .8080173 .0483896 16.70 0.000 .7131754 .9028593
−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
y6 <− |
dem65 | .7460072 .0572477 13.03 0.000 .6338037 .8582107
−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
y7 <− |
dem65 | .8236733 .0456011 18.06 0.000 .7342968 .9130499
−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
y8 <− |
dem65 | .8278414 .0459159 18.03 0.000 .737848 .9178348
−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
x1 <− |
ind60 | .9198529 .0231947 39.66 0.000 .8743921 .9653137
−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
x2 <− |
ind60 | .9730326 .0165154 58.92 0.000 .9406629 1.005402
−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
x3 <− |
ind60 | .8721386 .0308137 28.30 0.000 .8117447 .9325324
−−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
var ( e . y1 )| .2767759 .0744251 .1633954 .4688313
var ( e . y2 )| .4857361 .0917753 .3354083 .7034399
var ( e . y3 )| .4782116 .0930039 .3266451 .7001064
var ( e . y4 )| .2847755 .0752066 .1697102 .4778562
var ( e . y5 )| .347108 .0781993 .2232025 .5397968
var ( e . y6 )| .4434733 .0854144 .3040347 .6468621
var ( e . y7 )| .3215622 .0751209 .2034295 .5082954
var ( e . y8 )| .3146786 .0760221 .1959876 .5052496
var ( e . x1 )| .1538706 .0426714 .0893512 .2649787
sem builder 25
As before, we can check out the fit of the model using Estimation
⊳ Overall goodness of fit. In the estat-Postestimation tool for sem
dialog box, select Goodness-of-ft statistics in the Reporting and statis-
tics:(subcommand) drop-down list, and select all in the Statistics to
be displayed drop-down list. Press Ok. All the statistics are satisfac-
tory.
. e s t a t gof , s t a t s ( a l l )
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Fit s t a t i s t i c | Value Description
−−−−−−−−−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Likelihood r a t i o |
chi2_ms ( 3 5 ) | 38.125 model vs . s a t u r a t e d
p > chi2 | 0.329
chi2_bs (5 5 ) | 730.654 b a s e l i n e vs . s a t u r a t e d
p > chi2 | 0.000
−−−−−−−−−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Population e r r o r |
RMSEA | 0.035 Root mean squared e r r o r o f approximation
90% CI , lower bound | 0.000
upper bound | 0.092
pclose | 0.611 P r o b a b i l i t y RMSEA <= 0 . 0 5
−−−−−−−−−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Information c r i t e r i a |
AIC | 3157.582 Akaike ’ s i n f o r m a t i o n c r i t e r i o n
BIC | 3229.424 Bayesian i n f o r m a t i o n c r i t e r i o n
−−−−−−−−−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
B a s e l i n e comparison |
CFI | 0.995 Comparative f i t index
26 introduction to sem with stata - day 1
1. The syntax shows that the latent variable Visual loads onto the
three observed variables x1, x2, x3. It could have been written as
( V i s u a l −> x1 x2 x3 )
have all variables in your data set lpwer case, you can use the
followiing command.
. rename * , lower
import d e l i m i t e d ///
C: \ Users\NeilDiamond\Documents\LavaanCourse\HolzingerSwineford1939 . csv , c l e a r
sem ( V i s u a l −> x1 x2 x3 )
The Stata SEM code for the confirmatory factor analysis example is
given below:
• (Visual -> x1, ) (Visual -> x2, ) (Visual -> x3, ) can become (Visual
<- x1 x2 x3), and similarly for Textual and Speed.
v e r s i o n 13
clear all
macro drop _ a l l
s e t l i n e s i z e 80
e s t a t gof , s t a t s ( a l l )
log c l o s e
exit
Run the do file and confirm you get the same results as before.
We can also get a subset by listing the fit indices we want, for
example
e s t a t gof , s t a t s ( c h i 2 rmsea i c i n d i c e s r e s i d u a l s )
After the analysis, Stata saves various statistics which you might
want to use. For example after getting the goodness of fit statistics
there are many statistics retained.
. e s t a t gof , s t a t s ( a l l )
. return l i s t
scalars :
r ( N_groups ) = 1
r ( cd ) = .9861419451994397
r ( srmr ) = .0595237982362845
r( tli ) = .8958394762056794
r( cfi ) = .9305596508037862
r ( bic ) = 7646.703173647184
r ( aic ) = 7535.489865704717
r ( pclose ) = .0006612367108219
r ( ub90_rmsea ) = .1136780172014793
r ( lb90_rmsea ) = .0714184911919339
r ( rmsea ) = .0921214848760547
r ( p_bs ) = 1 . 5 7 3 4 1 7 5 1 0 6 e −169
r ( df_bs ) = 36
r ( chi2_bs ) = 918.8515836481301
r ( p_ms ) = 8 . 5 0 2 5 5 1 6 1 2 6 5 e −09
r ( df_ms ) = 24
r ( chi2_ms ) = 85.30552225695647
matrices :
r ( nobs ) : 1 x 1
. display r ( chi2_bs )
918.85158
One use of these statistcs is to calculate fit statistics that Stata does
not compute. For example, the GFI (Goodness of Fit Statistic) is given
by
GFI = 1 − [χ2model /χ2null ]
but Stata does not compute this statistic. But it is easy to generate it
using the retained statistics.
stata sem commands 31
. display g f i
.9071607
• Note that because we have dem60, dem65, and ind60 begin with
lower case letters, we do need to specify nocapslatent and also
specify that dem60, dem65 and ind60 are latent variables. Can you
think of something to simplify the commands?
• The code can be simplified by putting all the variables that a latent
variable loads on within the same bracket.
• Note how the covariances are specified. e.y1 and e.y5 are the error
variances attached to y1 and y5, respectively and e.y1*e.y5 says we
want to allow these errors to covary.
import d e l i m i t e d ///
C: \ Users\NeilDiamond\Documents\LavaanCourse\ P o l i t i c a l D e m o c r a c y . csv , c l e a r
sem ( Dem60 −>y1 y2 y3 y4 Dem65 ) ///
( Dem65 −> y5 y6 y7 y8)///
( I i n d 6 0 −> x1 x2 x3 Ind60 Ind65 ) ///
( T e x t u a l −> x4 x5 x6 ) , ///
cov ( e . y1 * e . y5 e . y2 * e . y4 e . y2 * e . y6 e . y3 * e . y7 e . y4 * e . y8 e . y6 * e . y8 )
e s t a t gof , s t a t s ( a l l )
Sometimes we have not got the raw data, for example we are reading
a paper. Usually either a sample variance-covariance matrix will be
provided; or the sample correlation matrix and the vector of sample
standard deviations (and possibly the sample means).
For an example, consider the data analysed by Kline (2011, p.163).
The data is adapted from Sava (2002), and relates to a study of 109
high school teachers and considers the causes and effects of teacher-
burnout. The hypothesied model is that school support and coercive
control affect teacher burnout and all these variables have an effect
on the teacher-pupil interaction. which in turn has an effect on the
school experience and the somatic status of the teacher’s students.
The variance-covariance matrix is given below.
Variable 1 2 3 4 5 6
1. Coercive Control 1.0000
2. Teacher Burnout 0.3557 1.0000
3. School Support −0.2566 −0.4774 1.0000
4. Teacher-Pupil Interactions -0.4046 0.0207 0.1864 1.0000
5. School Experience -0.1615 0.0938 0.0718 0.6542 1.0000
6. Somatic Status -0.3487 -0.0133 0.1570 0.7277 0.4964 1.0000
SD 8.3072 9.7697 10.5212 5.0000 3.7178 5.2714
We need to enter the data into Stata. We use the ssd (Summary
statistics data) command. Open the do file editor and type the fol-
lowing commands and save the file as Save.do
clear
ssd i n i t c c t b s c _ s p t t p i s c _ e som_st
ssd s e t o b s e r v a t i o n s 109
ssd s e t sd 8 . 3 0 7 2 9 . 7 6 9 7 1 0 . 5 2 1 2 5 . 0 0 0 3 . 7 1 7 8 5 . 2 7 1 4
# delimit ;
ssd s e t c o r r e l a t i o n s
1 \
.3557 1 \
−.2566 −.4774 1 \
−.4046 . 0 2 0 7 . 1 8 6 4 1 \
−.1615 . 0 9 3 8 . 0 7 1 8 . 6 5 4 2 1 \
−.3487 −.0133 . 1 5 7 0 . 7 2 7 7 . 4 9 6 4 1 ;
# delimit cr
save sava . dta
clear
use sava
ssd l i s t
• The end of the matrix input is ended by a new signal, i.e a semi-
colon.
• We then save the data, clear the memory, and then use the data
and list it with ssd list.
. do sava . do
stata sem commands 35
. clear
. ssd i n i t c c t b s c _ s p t t p i s c _ e som_st
ssd s e t o b s e r v a t i o n s ( r e q u i r e d )
I t i s b e s t t o do t h i s f i r s t .
ssd s e t means ( o p t i o n a l )
Default s e t t i n g i s 0 .
ssd s e t v a r i a n c e s or ssd s e t sd ( o p t i o n a l )
Use t h i s only i f you have s e t or w i l l s e t c o r r e l a t i o n s and , even then ,
t h i s i s o p t i o n a l but h i g h l y recommended . D e f a u l t s e t t i n g i s 1 .
ssd s e t c o v a r i a n c e s or ssd s e t c o r r e l a t i o n s ( r e q u i r e d )
. ssd s e t o b s e r v a t i o n s 109
( value s e t )
Status :
observations : set
means : unset
v a r i a n c e s or sd : unset
c o v a r i a n c e s or c o r r e l a t i o n s : unset ( r e q u i r e d t o be s e t )
. ssd s e t sd 8 . 3 0 7 2 9 . 7 6 9 7 1 0 . 5 2 1 2 5 . 0 0 0 3 . 7 1 7 8 5 . 2 7 1 4
( values s e t )
Status :
observations : set
means : unset
v a r i a n c e s or sd : set
c o v a r i a n c e s or c o r r e l a t i o n s : unset ( r e q u i r e d t o be s e t )
. # delimit ;
d e l i m i t e r now ;
. ssd s e t c o r r e l a t i o n s
> 1 \
> .3557 1 \
> −.2566 −.4774 1 \
> −.4046 . 0 2 0 7 . 1 8 6 4 1 \
> −.1615 . 0 9 3 8 . 0 7 1 8 .6542 1 \
36 introduction to sem with stata - day 1
Status :
observations : set
means : unset
v a r i a n c e s or sd : set
c o v a r i a n c e s or c o r r e l a t i o n s : set
. # delimit cr
d e l i m i t e r now c r
. save sava . dta
f i l e sava . dta saved
. clear
. use sava
. ssd l i s t
O b s e r v a t i o n s = 109
Standard d e v i a t i o n s :
cc tb sc_spt tpi sc_e som_st
8.3072 9.7697 10.5212 5 3.7178 5.2714
Correlations :
cc tb sc_spt tpi sc_e som_st
1
.3557 1
−.2566 −.4774 1
−.4046 .0207 .1864 1
−.1615 .0938 .0718 .6542 1
−.3487 −.0133 .157 .7277 .4964 1
.
end o f do− f i l e
Now open the do-file editor and create a do file called sava_fit.do
with the following commands:
stata sem commands 37
. sem ///
> ( s c _ s p t −> t b t p i ) ///
> ( c c −> t b t p i ) ///
> ( t b −> t p i ) ///
> ( t p i −> s c _ e som_st )
sem ///
( s c _ s p t −> t b t p i ) ///
( c c −> t b t p i ) ///
( t b −> t p i ) ///
( t p i −> s c _ e som_st )
Endogenous v a r i a b l e s
Observed : t b t p i s c _ e som_st
Exogenous v a r i a b l e s
Observed : sc_spt cc
F i t t i n g t a r g e t model :
Iteration 0: l o g l i k e l i h o o d = −2052.8451
Iteration 1: l o g l i k e l i h o o d = −2052.8451
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
| OIM
| Coef . Std . E rr . z P>|z| [95% Conf . I n t e r v a l ]
−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Structural |
t b <− |
s c _ s p t | −.3838194 .0777506 −4.94 0.000 −.5362078 −.231431
cc | .293585 .0984724 2.98 0.003 .1005828 .4865873
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
t p i <− |
tb | .1424866 .0510318 2.79 0.005 .0424661 .2425071
sc_spt | .0966997 .0458219 2.11 0.035 .0068904 .1865089
c c | −.2717027 .0545622 −4.98 0.000 −.3786426 −.1647628
38 introduction to sem with stata - day 1
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
s c _ e <− |
tpi | .486437 .0538653 9.03 0.000 .3808629 .592011
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
som_st <− |
tpi | .7671996 .0692629 11.08 0.000 .6314468 .9029524
−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
var ( e . t b )| 67.51208 9.14499 51.77024 88.04055
var ( e . t p i )| 19.16417 2.595923 14.69565 24.99144
var ( e . s c _ e )| 7.833977 1.061168 6.007324 10.21606
var ( e . som_st )| 12.95285 1.754555 9.932622 16.89143
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
LR t e s t o f model vs . s a t u r a t e d : c h i 2 ( 7 ) = 3 . 9 3 , Prob > c h i 2 = 0 . 7 8 7 7
Exercises:
1.(a) The results above are for the unstandardized model. If you
want to determine which of School Support or Coercive Control
has the biggest effect on Teacher Burnout, how would you mod-
ify your commands to do this? Modify your commands and
obtain a summary of the model.
(b) Assuming the model fits well, use SEM builder to display the
model.
educ66 occstat66
0 0
SES66
e3 Alien67 Alien71 e6
0 0
e4 e5 e7 e8
(c) Fit the model, and obtain standardized estimates. Does the
model fit? What is your interpretation of the results?
(d) Use SEM builder to create a diagram summarizing the results.
For the teacher burnout example, we can estimate the direct, indirect
and total effects of one variable on another. For example,
• The total effect is the sum of the direct and indirect effects (i.e
−0.275 + .042 = −0.233).
The results are as follows. Note that for the path going from sc_spt
to cc, the notation is _b to indicate it is a path followed by an opening
40 introduction to sem with stata - day 1
left square bracket. The destination variable comes first and then
the origin variable, separated by a colon. Finally we have a closing
square bracket.
. sem , c o e f l e g e n d
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
| Coef . Legend
−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Structural |
t b <− |
s c _ s p t | −.3838194 _b [ t b : s c _ s p t ]
cc | . 2 9 3 5 8 5 _b [ t b : c c ]
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
t p i <− |
tb | . 1 4 2 4 8 6 6 _b [ t p i : t b ]
sc_spt | . 0 9 6 6 9 9 7 _b [ t p i : s c _ s p t ]
c c | −.2717027 _b [ t p i : c c ]
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
s c _ e <− |
tpi | . 4 8 6 4 3 7 _b [ s c _ e : t p i ]
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
som_st <− |
tpi | . 7 6 7 1 9 9 6 _b [ som_st : t p i ]
−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
var ( e . t b )| 6 7 . 5 1 2 0 8 _b [ var ( e . t b ) : _cons ]
var ( e . t p i )| 1 9 . 1 6 4 1 7 _b [ var ( e . t p i ) : _cons ]
var ( e . s c _ e )| 7 . 8 3 3 9 7 7 _b [ var ( e . s c _ e ) : _cons ]
var ( e . som_st )| 1 2 . 9 5 2 8 5 _b [ var ( e . som_st ) : _cons ]
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
LR t e s t o f model vs . s a t u r a t e d : c h i 2 ( 7 ) = 3 . 9 3 , Prob > c h i 2 = 0 . 7 8 7 7
to enter it into the equation box. Type * and the select tpc:tb and
double click. Type + and then select tpi:cc and double click. Press
OK three times.
. nlcom ( _b [ t b : c c ] * _b [ t p i : t b ] + _b [ t p i : c c ] ) , p o s t
_nl_1 : _b [ t b : c c ] * _b [ t p i : t b ] + _b [ t p i : c c ]
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
| Coef . Std . E rr . z P>|z| [95% Conf . I n t e r v a l ]
−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
_ n l _ 1 | −.2298708 .0543087 −4.23 0.000 −.3363138 −.1234277
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Indirect effects
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
| OIM
| Coef . Std . E rr . z P>|z| Std . Coef .
−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Structural |
t b <− |
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
t p i <− |
s c _ s p t | −.0546891 .0225029 −2.43 0.015 −.1150791
cc | .0418319 .0205264 2.04 0.042 .0695013
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
s c _ e <− |
tb | .0693108 .0248238 2.79 0.005 .182136
sc_spt | .0204355 .020981 0.97 0.330 .0578314
c c | −.1118176 .0291756 −3.83 0.000 −.2498498
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
som_st <− |
tb | .1093157 .0391516 2.79 0.005 .2025992
42 introduction to sem with stata - day 1
Total e f f e c t s
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
| OIM
| Coef . Std . E rr . z P>|z| Std . Coef .
−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Structural |
t b <− |
s c _ s p t | −.3838194 .0777506 −4.94 0.000 −.4133434
cc | .293585 .0984724 2.98 0.003 .2496361
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
t p i <− |
tb | .1424866 .0510318 2.79 0.005 .2784103
sc_spt | .0420105 .0428804 0.98 0.327 .0884002
c c | −.2298708 .0543087 −4.23 0.000 −.3819165
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
s c _ e <− |
tb | .0693108 .0248238 2.79 0.005 .182136
tpi | .486437 .0538653 9.03 0.000 .6542
sc_spt | .0204355 .020981 0.97 0.330 .0578314
c c | −.1118176 .0291756 −3.83 0.000 −.2498498
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
som_st <− |
tb | .1093157 .0391516 2.79 0.005 .2025992
tpi | .7671996 .0692629 11.08 0.000 .7277
sc_spt | .0322305 .0330262 0.98 0.329 .0643288
c c | −.1763568 .044604 −3.95 0.000 −.2779206
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
In a study of 329 boys, Duncan, Haller, and Portes (1968) studied the
effect of peers on aspirations. The model is given below and the Stata
data set is available in the SEM manual.
stata sem commands 43
r_intel e1
r_occasp
r_ses
f_ses
f_occasp
f_intel e2
Endogenous v a r i a b l e s
Exogenous v a r i a b l e s
F i t t i n g t a r g e t model :
Iteration 0: l o g l i k e l i h o o d = −2617.0489
Iteration 1: l o g l i k e l i h o o d = −2617.0489
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
| OIM
| Coef . Std . E rr . z P>|z| [95% Conf . I n t e r v a l ]
−−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Structural |
r _ o c c a s p <− |
f_occasp | .2773441 .1287622 2.15 0.031 .0249748 .5297134
r_intel | .2854766 .0522001 5.47 0.000 .1831662 .3877869
r_ses | .1570082 .052733 2.98 0.003 .0536534 .260363
f_ses | .0973327 .0603699 1.61 0.107 −.0209901 .2156555
−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
f _ o c c a s p <− |
r_occasp | .2118102 .1563958 1.35 0.176 −.09472 .5183404
r_ses | .0794194 .0589095 1.35 0.178 −.0360411 .1948799
f_ses | .1681772 .0543854 3.09 0.002 .0615838 .2747705
f_intel | .3693682 .0557939 6.62 0.000 .2600142 .4787223
−−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
var ( e . r _ o c c ~p)| .6868304 .0535981 .5894193 .8003401
var ( e . f _ o c c ~p)| .6359151 .0501501 .5448425 .7422109
−−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
cov ( e . r _ o c c ~p , |
e . f _ o c c a s p )| −.1536992 .1442554 −1.07 0.287 −.4364346 .1290362
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
LR t e s t o f model vs . s a t u r a t e d : c h i 2 ( 0 ) = 0 . 0 0 , Prob > c h i 2 = .
1. Open the diagram and select the path from r_intel to r_occasp. In
the β box, type b1 and make sure you press Enter. Select the path
from r_ses to f_ses. Again type b1.
2. Do the same for the three other pairs you expect to be the same,
but this time type b2, b3, and b4, respectively.
.69
r_intel e1
1
.33
r_occasp
r_ses .16
.088
1
f_ses .16
1
f_occasp
.33
f_intel e2
1
.64
Endogenous v a r i a b l e s
Exogenous v a r i a b l e s
F i t t i n g t a r g e t model :
Iteration 0: l o g l i k e l i h o o d = −2617.8735
Iteration 1: l o g l i k e l i h o o d = −2617.8705
Iteration 2: l o g l i k e l i h o o d = −2617.8705
Notice the code for a constraint. You can also set numbers here.
Exercise: Repeat the exercise with a do file.
3.9 Identification
• With more than two factors, then you require at least two indica-
tors to be identified.
Description
Usage
data ( HolzingerSwineford1939 )
Format
id
Identifier
sex
Gender
ageyr
Age , year p a r t
50 introduction to sem with stata - day 1
agemo
Age , month p a r t
school
School ( P a s t e u r or Grant −White )
grade
Grade
x1
Visual perception
x2
Cubes
x3
Lozenges
x4
Paragraph comprehension
x5
S e n t e n c e completion
x6
Word meaning
x7
Speeded a d d i t i o n
x8
Speeded counting o f dots
x9
Speeded d i s c r i m i n a t i o n s t r a i g h t and curved c a p i t a l s
Source
References
datasets 51
Joreskog , K . G. ( 1 9 6 9 ) . A g e n e r a l approach t o c o n f i r m a t o r y
maximum l i k e l i h o o d f a c t o r a n a l y s i s . Psychometrika , 3 4 ,
183 −202.
52 introduction to sem with stata - day 1
P o l i t i c a l D e m o c r a c y { lavaan } R Documentation
I n d u s t r i a l i z a t i o n And P o l i t i c a l Democracy D a t a s e t
Description
Usage
data ( P o l i t i c a l D e m o c r a c y )
Format
A data frame o f 75 o b s e r v a t i o n s o f 11 v a r i a b l e s .
y1
Expert r a t i n g s o f t h e freedom o f t h e p r e s s i n 1960
y2
The freedom o f p o l i t i c a l o p p o s i t i o n i n 1960
y3
The f a i r n e s s o f e l e c t i o n s i n 1960
y4
The e f f e c t i v e n e s s o f t h e e l e c t e d l e g i s l a t u r e i n 1960
y5
Expert r a t i n g s o f t h e freedom o f t h e p r e s s i n 1965
y6
The freedom o f p o l i t i c a l o p p o s i t i o n i n 1965
y7
The f a i r n e s s o f e l e c t i o n s i n 1965
y8
The e f f e c t i v e n e s s o f t h e e l e c t e d l e g i s l a t u r e i n 1965
datasets 53
x1
The g r o s s n a t i o n a l product (GNP) per c a p i t a i n 1960
x2
The inanimate energy consumption per c a p i t a i n 1960
x3
The p e r c e n t a g e o f t h e l a b o r f o r c e i n i n d u s t r y i n 1960
Source
References
B o l l e n , K . A. ( 1 9 8 9 ) . S t r u c t u r a l Equations with L a t e n t
V a r i a b l e s . Wiley S e r i e s i n P r o b a b i l i t y and Mathematical
S t a t i s t i c s . New York : Wiley .
B o l l e n , K . A. ( 1 9 8 0 ) . I s s u e s i n t h e comparative measurement o f
p o l i t i c a l democracy . American S o c i o l o g i c a l Review , 4 5 , 370 −390.
54 introduction to sem with stata - day 1
Variable 1 2 3 4 5 6
1. Coercive Control 1.0000
2. Teacher Burnout 0.3557 1.0000
3. School Support −0.2566 −0.4774 1.0000
4. Teacher-Pupil Interactions -0.4046 0.0207 0.1864 1.0000
5. School Experience -0.1615 0.0938 0.0718 0.6542 1.0000
6. Somatic Status -0.3487 -0.0133 0.1570 0.7277 0.4964 1.0000
SD 8.3072 9.7697 10.5212 5.0000 3.7178 5.2714
datasets 55
. ssd d e s c r i b e
. notes
_dta :
1 . Summary s t a t i s t i c s data from Duncan , O.D. , H a l l e r , A.O. , and P o r t e s , A. ,
1 9 6 8 , " Peer I n f l u e n c e s on A s p i r a t i o n s : A R e i n t e r p r e t a t i o n " , _American
J o u r n a l o f S o c i o l o g y _ 7 4 , 119 −137.
2 . The data c o n t a i n 329 boys with i n f o r m a t i o n on f i v e v a r i a b l e s and t h e same
i n f o r m a t i o n f o r each boy ’ s b e s t f r i e n d .
5 Bibliography
[1] K.A. Bollen. Structural Equations with Latent Variables. John Wiley
and Sons, New York, 1989.
[2] T.A. Brown. Confirmatory Factor Analysis for Applied Research. The
Guilford Press, New York, 2006.
[5] J.F. Jr Hair, G.T.M Hult, C.M Ringle, and M. Sarstedt, editors.
A Primer on Partial Least Squares Structural Equation Modeling
(PLS-SEM). Routledge, New York, 2010.
[6] G.R. Hancock and R.O. Mueller, editors. The Reviewer’s Guide to
Quantitative Methods in the Social Sciences. Routledge, New York,
2010.
[16] Mark P.J. van der Loo and Edwin de Jonge. Learning RStudio for
R Statistical Computing. Packt Publishing, Birgiingham, UK, 2012.