. set linesize 80

. sem (cumdose1 -> radchw2) (cumdose1 -> crhtw2) (cumdose1 -> cumdose2) (cumdose1 -> cumdose3) (depagw1 -> crhtw1) (depagw1 -> radchw2) (depagw1 -> depagw2) (radchw1 -> depagw1) (radchw1 -> radchw2) (radchw1 -> crhtw2) (crhtw1 -> crhtw2) (crhtw1 -> crhrw3) (radchw2 -> crhtw2) (depagw2 -> crhtw2) (depagw2 -> BSIanx) (depagw2 -> crhrw3) (crhtw2 -> BSIanx) (crhtw2 -> crhrw3) (age -> depagw1) (age -> crhtw1) (age -> depagw2) (age -> whpsleep) (cumdose2 -> cumdose3) (whppa -> crhtw1) (whppa -> radchw2) (whppa -> crhtw2) (whppa -> BSIdep) (whppa -> whpsleep) (BSIanx -> crhtw1) (BSIanx -> BSIdep) (BSIanx -> whpsleep) (whpsleep -> BSIdep) (airw1 -> depagw1) (airw1 -> crhtw1) (airw1 -> radchw2) (airw1 -> depagw2) (airw1 -> BSIanx) (fdferw1 -> depagw1) (fdferw1 -> crhtw1) (fdferw1 -> depagw2) (fdferw1 -> whpsleep) if gender==1, nocapslatent

Endogenous variables


Observed:  radchw2 crhtw2 cumdose2 cumdose3 depagw1 crhtw1 depagw2 crhrw3 BSIanx whpsleep BSIdep


Exogenous variables


Observed:  cumdose1 radchw1 age whppa airw1 fdferw1


Fitting target model:

Iteration 0:   log likelihood =  -17120.94
Iteration 1:   log likelihood = -17108.802
Iteration 2:   log likelihood = -17106.171
Iteration 3:   log likelihood = -17106.081
Iteration 4:   log likelihood = -17106.081

Structural equation model                       Number of obs      =       339
 Estimation method = ml
 Log likelihood    = -17106.081

--------------+----------------------------------------------------------------
              |                 OIM
              |      Coef.    Std. Err.       z    P>|z|      [95% Con f. Interval]
--------------+----------------------------------------------------------------
 Structural    |
   radchw2 <-  |
      depagw1 |    -.093878    .0454092     -2.07    0.039     -.1828784    -.0048776
     cumdose1 |    2.655714    .7798212      3.41    0.001      1.127292     4.184135
      radchw1 |    .6243548    .0385784     16.18    0.000      .5487426      .699967
        whppa |    .3441295    .0900283      3.82    0.000      .1676772     .5205817
        airw1 |   -.0670459    .0383486     -1.75    0.080     -.1422077      .008116
        _cons |    16.64974    3.188173      5.22    0.000      10.40103     22.89844
  ------------+----------------------------------------------------------------
   crhtw2 <-   |
      radchw2 |    .0094791    .0009893      9.58    0.000      .0075401     .0114182
       crhtw1 |    .8351204    .0308141     27.10    0.000      .7747258      .895515
      depagw2 |    .0081446    .0014478      5.63    0.000      .0053069     .0109823
     cumdose1 |   -.0292823    .0145104     -2.02    0.044     -.0577221    -.0008424
      radchw1 |   -.0080512    .0009309     -8.65    0.000     -.0098757    -.0062268
        whppa |    .0046527    .0017384      2.68    0.007      .0012455     .0080599
        _cons |   -.1997385    .0498335     -4.01    0.000     -.2974103    -.1020667
  ------------+----------------------------------------------------------------
   cumdose2 <- |
     cumdose1 |    1.339597    .0366997     36.50    0.000      1.267667     1.411527
        _cons |    .3879549    .0632438      6.13    0.000      .2639992     .5119105
  ------------+----------------------------------------------------------------
   cumdose3 <- |
     cumdose2 |    1.087217    .0123079     88.34    0.000      1.063094      1.11134
     cumdose1 |   -.0439337    .0184663     -2.38    0.017      -.080127    -.0077403
        _cons |    .1920846    .0151063     12.72    0.000      .1624768     .2216924
  ------------+----------------------------------------------------------------
   depagw1 <-  |
      radchw1 |   -.2255648    .0376144     -6.00    0.000     -.2992877     -.151842
          age |    .2291889    .1151014      1.99    0.046      .0035943     .4547835
        airw1 |    .1277529    .0406249      3.14    0.002      .0481295     .2073762
      fdferw1 |    .4034211    .0364406     11.07    0.000      .3319988     .4748434
        _cons |   -4.638666    5.916464     -0.78    0.433     -16.23472     6.957391
  ------------+----------------------------------------------------------------
   crhtw1 <-   |
      depagw1 |    .0048837    .0017954      2.72    0.007      .0013648     .0084026
       BSIanx |   -.1148348    .0314752     -3.65    0.000      -.176525    -.0531446
          age |    .0121176    .0042331      2.86    0.004      .0038209     .0204142
        whppa |    .0104254    .0034569      3.02    0.003      .0036499     .0172009
        airw1 |    .0065012    .0014229      4.57    0.000      .0037124     .0092901
      fdferw1 |    .0065179    .0015234      4.28    0.000      .0035321     .0095036
        _cons |    -.646787    .2757334     -2.35    0.019     -1.187214    -.1063596
  ------------+----------------------------------------------------------------
   depagw2 <-  |
      depagw1 |    .2134912    .0307456      6.94    0.000      .1532309     .2737515
          age |    .2029756    .0689214      2.95    0.003      .0678921     .3380591
        airw1 |   -.0703643     .024173     -2.91    0.004     -.1177426    -.0229861
      fdferw1 |    .0562186    .0252903      2.22    0.026      .0066506     .1057867
        _cons |   -2.322406    3.333129     -0.70    0.486     -8.855218     4.210407
  ------------+----------------------------------------------------------------
   crhrw3 <-   |
       crhtw2 |    1.036497    .0271138     38.23    0.000      .9833552     1.089639
       crhtw1 |   -.1077892    .0259464     -4.15    0.000     -.1586432    -.0569352
      depagw2 |    .0018722    .0008637      2.17    0.030      .0001793     .0035651
        _cons |   -.0247038    .0161901     -1.53    0.127     -.0564358     .0070282
  ------------+----------------------------------------------------------------
   BSIanx <-   |
       crhtw2 |    1.868707    .2873568      6.50    0.000      1.305498     2.431916
      depagw2 |    .0257663    .0093035      2.77    0.006      .0075318     .0440009
        airw1 |   -.0184936    .0048134     -3.84    0.000     -.0279277    -.0090596
        _cons |    8.872709     .384909     23.05    0.000      8.118301     9.627117
  ------------+----------------------------------------------------------------
   whpsleep <- |
       BSIanx |    2.988487    .4189314      7.13    0.000      2.167396     3.809577
          age |    .2483807    .0967779      2.57    0.010      .0586996     .4380619
        whppa |    .3560758    .0814963      4.37    0.000       .196346     .5158056
      fdferw1 |    .1378615    .0294973      4.67    0.000      .0800479     .1956752
        _cons |   -25.44547    5.244783     -4.85    0.000     -35.72505    -15.16588
  ------------+----------------------------------------------------------------
   BSIdep <-   |
       BSIanx |    .4953912    .0508597      9.74    0.000       .395708     .5950744
     whpsleep |    .0140118    .0059299      2.36    0.018      .0023893     .0256342
        whppa |    .0265236    .0092044      2.88    0.004      .0084833     .0445638
        _cons |    3.853865    .3756437     10.26    0.000      3.117617     4.590113
--------------+----------------------------------------------------------------
 Variance      |
    e.radchw2 |    565.2633    43.41761                     486.262     657.0995
     e.crhtw2 |    .1894244    .0147039                    .1626905     .2205512
   e.cumdose2 |    1.271465    .0976606                    1.093765     1.478035
   e.cumdose3 |    .0652934    .0050152                     .056168     .0759014
    e.depagw1 |    596.2898    45.80074                    512.9523     693.1668
     e.crhtw1 |    .6949654    .0787495                    .5565573     .8677936
    e.depagw2 |    211.3539      16.234                    181.8151     245.6918
     e.crhrw3 |    .0634885    .0048765                    .0546154     .0738033
     e.BSIanx |    6.639715    .5969929                    5.566931     7.919231
   e.whpsleep |    406.8025    31.24631                    349.9477     472.8942
     e.BSIdep |    5.300662    .4071414                    4.559841     6.161841
--------------+----------------------------------------------------------------
LR test of model vs. saturated: chi2(80)  =     90.44, Prob > chi2 = 0.1993
.