. sem (cumdose1 -> cumdose2) (cumdose2 -> cumdose3) (whpsleep -> whpel) (whpsleep -> whppa) (goferw1 -> cumdose1) (goferw1 -> goferw2) (goferw1 -> aborw3) (goferw1 -> crhrw2) (goferw2 -> cumdose3) (goferw2 -> aborw2) (fdferw1 -> goferw1) (fdferw1 -> goferw2) (aborw1 -> crhrw3) (aborw2 -> whpsleep) (aborw3 -> whppa) (crhrw1 -> aborw1) (crhrw1 -> crhrw2) (crhrw1 -> crhrw3) (crhrw2 -> crhrw3) (crhrw3 - whpsleep) (crhrw3 -> whpel) (crhrw3 -> whppa) (whpel -> whppa) (icdxcnt -> whpsleep) (icdxcnt -> aborw1) (icdxcnt -> aborw2) (icdxcn
invalid something: unmatched open parenthesis or bracket

r(198);
.
. sem (cumdose1 -> cumdose2) (cumdose2 -> cumdose3) (whpsleep -> whpel) (whpsleep -> whppa) (goferw1 -> cumdose1) (goferw1 -> goferw2) (goferw1 -> aborw3) (goferw1 -> crhrw2) (goferw2 -> cumdose3) (goferw2 -> aborw2) (fdferw1 -> goferw1) (fdferw1 -> goferw2) (aborw1 -> crhrw3) (aborw2 -> whpsleep) (aborw3 -> whppa) (crhrw1 -> aborw1) (crhrw1 -> crhrw2) (crhrw1 -> crhrw3) (crhrw2 -> crhrw3) (crhrw3 -> whpsleep) (crhrw3 -> whpel) (crhrw3 -> whppa) (whpel -> whppa) (icdxcnt -> whpsleep) (icdxcnt -> aborw1) (icdxcnt -> aborw2) (icdxcnt -> crhrw2) if gender==2, cov( e.cumdose2*e.cumdose3 e.goferw2*e.crhrw2 e.aborw2*e.aborw3 e.aborw3*e.crhrw3) nocapslatent
(2 observations with missing values excluded;
 specify option 'method(mlmv)' to use all observations)

Endogenous variables


Observed:  cumdose1 cumdose2 cumdose3 whpsleep whpel whppa goferw1 goferw2 aborw3 crhrw2 aborw2 aborw1 crhrw3


Exogenous variables


Observed:  fdferw1 crhrw1 icdxcnt


Fitting target model:

Iteration 0:   log likelihood =  -13748.18  (not concave)
Iteration 1:   log likelihood = -13540.825
Iteration 2:   log likelihood = -13473.859
Iteration 3:   log likelihood = -13440.135
Iteration 4:   log likelihood = -13436.996
Iteration 5:   log likelihood = -13436.967
Iteration 6:   log likelihood = -13436.967

Structural equation model                       Number of obs      =       361
 Estimation method = ml
 Log likelihood    = -13436.967

---------------+----------------------------------------------------------------
               |                 OIM
               |      Coef.    Std. Err.       z    P>|z|      [95% Con f. Interval]
---------------+----------------------------------------------------------------
 Structural     |
   cumdose1 <-  |
       goferw1 |    .0032023    .0007829      4.09    0.000      .0016679     .0047366
         _cons |    .2413505    .0366004      6.59    0.000       .169615      .313086
  -------------+----------------------------------------------------------------
   cumdose2 <-  |
      cumdose1 |     2.18886    .0650405     33.65    0.000      2.061383     2.316337
         _cons |    .1616705    .0419252      3.86    0.000      .0794987     .2438424
  -------------+----------------------------------------------------------------
   cumdose3 <-  |
      cumdose2 |    1.228932    .0129503     94.90    0.000       1.20355     1.254314
       goferw2 |    .0024603    .0008766      2.81    0.005      .0007421     .0041785
         _cons |    .0812865    .0204274      3.98    0.000      .0412495     .1213235
  -------------+----------------------------------------------------------------
   whpsleep <-  |
        aborw2 |   -4.233705    2.130612     -1.99    0.047     -8.409629    -.0577817
        crhrw3 |    8.759233    1.727193      5.07    0.000      5.373996     12.14447
       icdxcnt |    2.523497    .6661465      3.79    0.000      1.217874      3.82912
         _cons |    18.19965    2.631538      6.92    0.000      13.04193     23.35737
  -------------+----------------------------------------------------------------
   whpel <-     |
      whpsleep |    .5418411    .0516632     10.49    0.000      .4405831     .6430991
        crhrw3 |    4.486308    1.789785      2.51    0.012      .9783935     7.994222
         _cons |    16.95847    2.018407      8.40    0.000      13.00247     20.91448
  -------------+----------------------------------------------------------------
   whppa <-     |
      whpsleep |    .2177445    .0336108      6.48    0.000      .1518686     .2836204
         whpel |    .2186883    .0298938      7.32    0.000      .1600975      .277279
        aborw3 |   -4.971303    2.087643     -2.38    0.017     -9.063008    -.8795992
        crhrw3 |    2.707541     1.02623      2.64    0.008      .6961675     4.718915
         _cons |    5.980459    1.288088      4.64    0.000      3.455854     8.505064
  -------------+----------------------------------------------------------------
   goferw1 <-   |
       fdferw1 |    .6985567    .0343253     20.35    0.000      .6312805      .765833
         _cons |    3.436444    1.828957      1.88    0.060     -.1482459     7.021133
  -------------+----------------------------------------------------------------
   goferw2 <-   |
       goferw1 |    .1467846     .033438      4.39    0.000      .0812473     .2123218
       fdferw1 |    .0702821    .0318374      2.21    0.027       .007882     .1326822
         _cons |    1.116902    1.171066      0.95    0.340     -1.178346      3.41215
  -------------+----------------------------------------------------------------
   aborw3 <-    |
       goferw1 |   -.0016422    .0006038     -2.72    0.007     -.0028256    -.0004587
         _cons |    .1733552    .0282858      6.13    0.000       .117916     .2287943
  -------------+----------------------------------------------------------------
   crhrw2 <-    |
       goferw1 |    .0046191    .0008892      5.19    0.000      .0028764     .0063619
        crhrw1 |    .6194044    .0339626     18.24    0.000       .552839     .6859698
       icdxcnt |    .0477625    .0137328      3.48    0.001      .0208466     .0746783
         _cons |   -.1983836     .059535     -3.33    0.001     -.3150701    -.0816972
  -------------+----------------------------------------------------------------
   aborw2 <-    |
       goferw2 |   -.0043521    .0021684     -2.01    0.045     -.0086019    -.0001022
       icdxcnt |    .0433149    .0162928      2.66    0.008      .0113816     .0752483
         _cons |    .2192323    .0649627      3.37    0.001      .0919077     .3465568
  -------------+----------------------------------------------------------------
   aborw1 <-    |
        crhrw1 |    .1926739     .049221      3.91    0.000      .0962025     .2891452
       icdxcnt |    .0548145    .0200384      2.74    0.006      .0155399     .0940891
         _cons |    .0748925    .0794357      0.94    0.346     -.0807987     .2305837
  -------------+----------------------------------------------------------------
   crhrw3 <-    |
        crhrw2 |    1.043845    .0232374     44.92    0.000      .9983002     1.089389
        aborw1 |   -.0414874    .0167388     -2.48    0.013     -.0742947      -.00868
        crhrw1 |   -.1068446    .0218238     -4.90    0.000     -.1496184    -.0640708
         _cons |    .0185662     .015747      1.18    0.238     -.0122972     .0494297
---------------+----------------------------------------------------------------
 Variance       |
    e.cumdose1 |    .2890055    .0215113                    .2497751     .3343975
    e.cumdose2 |    .4618044    .0343732                    .3991179     .5343367
    e.cumdose3 |     .087367    .0065934                    .0753546     .1012944
    e.whpsleep |    843.9022    62.81357                    729.3487     976.4477
       e.whpel |    850.5979    63.31195                    735.1356     984.1951
       e.whppa |    274.2456    20.41273                    237.0188     317.3194
     e.goferw1 |    608.3375    45.27996                    525.7602     703.8847
     e.goferw2 |    247.6323    18.43204                    214.0177     286.5266
      e.aborw3 |    .1730736    .0128913                    .1495649     .2002775
      e.crhrw2 |    .3643757     .027125                     .314908     .4216139
      e.aborw2 |    .5146966    .0383115                    .4448279     .5955394
      e.aborw1 |    .7700159     .057314                     .665492     .8909567
      e.crhrw3 |    .0793903    .0059099                    .0686125     .0918611
---------------+----------------------------------------------------------------
 Covariance     |
   e.cumdose2   |
    e.cumdose3 |     .042052    .0123439      3.41    0.001      .0178585     .0662455
  -------------+----------------------------------------------------------------
   e.goferw2    |
      e.crhrw2 |    1.235576    .5063493      2.44    0.015      .2431498     2.228003
  -------------+----------------------------------------------------------------
   e.aborw3     |
      e.aborw2 |    .0314257    .0157095      2.00    0.045      .0006357     .0622156
      e.crhrw3 |    .0146636    .0062571      2.34    0.019      .0023998     .0269274
---------------+----------------------------------------------------------------
LR test of model vs. saturated: chi2(86)  =     99.21, Prob > chi2 = 0.1562
.
. estat stable

Stability analysis of simultaneous equation systems

   Eigenvalue stability condition
  +--------------------------+-------------+
  |        Eigenvalue        |   Modulus   |
  +--------------------------+-------------+
  |  4.423e-09               |   4.4e-09   |
  | -4.423e-09               |   4.4e-09   |
  |  3.206e-10               |   3.2e-10   |
  | -3.206e-10               |   3.2e-10   |
  |  3.458e-17               |   3.5e-17   |
  |  2.776e-17               |   2.8e-17   |
  |          0               |         0   |
  |          0               |         0   |
  |          0               |         0   |
  |          0               |         0   |
  |          0               |         0   |
  |          0               |         0   |
  |          0               |         0   |
  +--------------------------+-------------+
   stability index =  4.42e-09
   All the eigenvalues lie inside the unit circle.
   SEM satisfies stability condition.

. estat gof

---------------------+------------------------------------------------------
Fit statistic  |      Value   Description
---------------------+------------------------------------------------------
Likelihood ratio  |
chi2_ms(86)   |     99.212     model vs. saturated
p > chi2   |      0.156
chi2_bs(117)   |   3779.561     baseline vs. saturated
p > chi2   |      0.000
---------------------+------------------------------------------------------

. estat ic

-------------+---------------------------------------------------------------
       Model |    Obs    ll(null)   ll(model)     df          AIC         BIC
-------------+---------------------------------------------------------------
.            |    361           .   -13436.97     57     26987.93     27209.6
-------------+---------------------------------------------------------------


Note:  N=Obs used in calculating BIC; see [R] BIC note


. sem (cumdose1 -> cumdose2) (cumdose2 -> cumdose3) (whpsleep -> whpel) (whpsleep -> whppa) (goferw1 -> cumdose1) (goferw1 -> goferw2) (goferw1 -> aborw3) (goferw1 -> crhrw2) (goferw2 -> cumdose3) (goferw2 -> aborw2) (fdferw1 -> goferw1) (fdferw1 -> goferw2) (aborw1 -> crhrw3) (aborw2 -> whpsleep) (aborw3 -> whppa) (crhrw1 -> aborw1) (crhrw1 -> crhrw2) (crhrw1 -> crhrw3) (crhrw2 -> crhrw3) (crhrw3 -> whpsleep) (crhrw3 -> whpel) (crhrw3 -> whppa) (whpel -> whppa) (icdxcnt -> whpsleep) (icdxcnt -> aborw1) (icdxcnt -> aborw2) (icdxcnt -> crhrw2) if gender==2, vce(cluster id) cov( e.cumdose2*e.cumdose3 e.goferw2*e.crhrw2 e.aborw2*e.aborw3 e.aborw3*e.crhrw3) nocapslatent
(2 observations with missing values excluded;
 specify option 'method(mlmv)' to use all observations)

Endogenous variables


Observed:  cumdose1 cumdose2 cumdose3 whpsleep whpel whppa goferw1 goferw2 aborw3 crhrw2 aborw2 aborw1 crhrw3


Exogenous variables


Observed:  fdferw1 crhrw1 icdxcnt


Fitting target model:

Iteration 0:   log pseudolikelihood =  -13748.18  (not concave)
Iteration 1:   log pseudolikelihood = -13540.825
Iteration 2:   log pseudolikelihood = -13473.859
Iteration 3:   log pseudolikelihood = -13440.135
Iteration 4:   log pseudolikelihood = -13436.996
Iteration 5:   log pseudolikelihood = -13436.967
Iteration 6:   log pseudolikelihood = -13436.967

Structural equation model                       Number of obs      =       361
 Estimation method = ml
 Log pseudolikelihood = -13436.967

(Std. Err. adjusted for 361 clusters in id)
---------------+----------------------------------------------------------------
               |               Robust
               |      Coef.    Std. Err.       z    P>|z|      [95% Con f. Interval]
---------------+----------------------------------------------------------------
 Structural     |
   cumdose1 <-  |
       goferw1 |    .0032023    .0011962      2.68    0.007      .0008578     .0055467
         _cons |    .2413505     .019026     12.69    0.000      .2040602     .2786408
  -------------+----------------------------------------------------------------
   cumdose2 <-  |
      cumdose1 |     2.18886     .083603     26.18    0.000      2.025001     2.352719
         _cons |    .1616705    .0419462      3.85    0.000      .0794575     .2438836
  -------------+----------------------------------------------------------------
   cumdose3 <-  |
      cumdose2 |    1.228932    .0352197     34.89    0.000      1.159902     1.297961
       goferw2 |    .0024603    .0012627      1.95    0.051     -.0000146     .0049352
         _cons |    .0812865    .0294283      2.76    0.006      .0236081     .1389649
  -------------+----------------------------------------------------------------
   whpsleep <-  |
        aborw2 |   -4.233705    1.644764     -2.57    0.010     -7.457384    -1.010027
        crhrw3 |    8.759233    1.749043      5.01    0.000      5.331171     12.18729
       icdxcnt |    2.523497    .7810614      3.23    0.001      .9926446     4.054349
         _cons |    18.19965    2.678384      6.80    0.000      12.95012     23.44919
  -------------+----------------------------------------------------------------
   whpel <-     |
      whpsleep |    .5418411     .053608     10.11    0.000      .4367713     .6469108
        crhrw3 |    4.486308    1.788977      2.51    0.012      .9799771     7.992638
         _cons |    16.95847     1.92508      8.81    0.000      13.18539     20.73156
  -------------+----------------------------------------------------------------
   whppa <-     |
      whpsleep |    .2177445    .0397755      5.47    0.000       .139786      .295703
         whpel |    .2186883    .0347415      6.29    0.000      .1505961     .2867804
        aborw3 |   -4.971303    1.627593     -3.05    0.002     -8.161327     -1.78128
        crhrw3 |    2.707541    .9684807      2.80    0.005       .809354     4.605729
         _cons |    5.980459    1.127836      5.30    0.000      3.769941     8.190978
  -------------+----------------------------------------------------------------
   goferw1 <-   |
       fdferw1 |    .6985567    .0405626     17.22    0.000      .6190554      .778058
         _cons |    3.436444    1.396699      2.46    0.014      .6989635     6.173924
  -------------+----------------------------------------------------------------
   goferw2 <-   |
       goferw1 |    .1467846    .0374639      3.92    0.000      .0733566     .2202125
       fdferw1 |    .0702821      .02815      2.50    0.013      .0151091     .1254552
         _cons |    1.116902    .8204754      1.36    0.173     -.4912003     2.725004
  -------------+----------------------------------------------------------------
   aborw3 <-    |
       goferw1 |   -.0016422    .0005981     -2.75    0.006     -.0028144      -.00047
         _cons |    .1733552    .0359345      4.82    0.000      .1029249     .2437855
  -------------+----------------------------------------------------------------
   crhrw2 <-    |
       goferw1 |    .0046191     .000923      5.00    0.000        .00281     .0064283
        crhrw1 |    .6194044    .0372516     16.63    0.000      .5463925     .6924162
       icdxcnt |    .0477625    .0151675      3.15    0.002      .0180348     .0774902
         _cons |   -.1983836    .0594983     -3.33    0.001     -.3149983     -.081769
  -------------+----------------------------------------------------------------
   aborw2 <-    |
       goferw2 |   -.0043521    .0015136     -2.88    0.004     -.0073186    -.0013855
       icdxcnt |    .0433149    .0219053      1.98    0.048      .0003813     .0862486
         _cons |    .2192323    .0636457      3.44    0.001       .094489     .3439756
  -------------+----------------------------------------------------------------
   aborw1 <-    |
        crhrw1 |    .1926739    .0548624      3.51    0.000      .0851454     .3002023
       icdxcnt |    .0548145    .0225188      2.43    0.015      .0106784     .0989506
         _cons |    .0748925    .0682257      1.10    0.272     -.0588274     .2086124
  -------------+----------------------------------------------------------------
   crhrw3 <-    |
        crhrw2 |    1.043845    .0277145     37.66    0.000      .9895253     1.098164
        aborw1 |   -.0414874    .0137175     -3.02    0.002     -.0683732    -.0146016
        crhrw1 |   -.1068446    .0314328     -3.40    0.001     -.1684517    -.0452375
         _cons |    .0185662    .0159832      1.16    0.245     -.0127603     .0498928
---------------+----------------------------------------------------------------
 Variance       |
    e.cumdose1 |    .2890055    .1001246                    .1465586     .5699029
    e.cumdose2 |    .4618044    .2566491                    .1553819     1.372511
    e.cumdose3 |     .087367    .0322766                    .0423528     .1802241
    e.whpsleep |    843.9022     64.0204                    727.3073     979.1884
       e.whpel |    850.5979    59.92645                    740.8927     976.5473
       e.whppa |    274.2456    26.72383                    226.5659     331.9593
     e.goferw1 |    608.3375     68.8233                    487.3548     759.3534
     e.goferw2 |    247.6323     39.5962                    181.0093     338.7769
      e.aborw3 |    .1730736    .0395079                    .1106434       .27073
      e.crhrw2 |    .3643757    .0378495                    .2972561     .4466506
      e.aborw2 |    .5146966    .0851243                    .3721973     .7117529
      e.aborw1 |    .7700159    .3733713                    .2976888      1.99176
      e.crhrw3 |    .0793903    .0122786                    .0586299     .1075017
---------------+----------------------------------------------------------------
 Covariance     |
   e.cumdose2   |
    e.cumdose3 |     .042052     .074167      0.57    0.571     -.1033126     .1874166
  -------------+----------------------------------------------------------------
   e.goferw2    |
      e.crhrw2 |    1.235576    .5105715      2.42    0.016      .2348745     2.236278
  -------------+----------------------------------------------------------------
   e.aborw3     |
      e.aborw2 |    .0314257    .0305258      1.03    0.303     -.0284039     .0912552
      e.crhrw3 |    .0146636    .0118402      1.24    0.216     -.0085427       .03787
---------------+----------------------------------------------------------------
.
. sem (cumdose1 -> cumdose2) (cumdose2 -> cumdose3) (whpsleep -> whpel) (whpsleep -> whppa) (goferw1 -> cumdose1) (goferw1 -> goferw2) (goferw1 -> aborw3) (goferw1 -> crhrw2) (goferw2 -> cumdose3) (goferw2 -> aborw2) (fdferw1 -> goferw1) (fdferw1 -> goferw2) (aborw1 -> crhrw3) (aborw2 -> whpsleep) (aborw3 -> whppa) (crhrw1 -> aborw1) (crhrw1 -> crhrw2) (crhrw1 -> crhrw3) (crhrw2 -> crhrw3) (crhrw3 -> whpsleep) (crhrw3 -> whpel) (crhrw3 -> whppa) (whpel -> whppa) (icdxcnt -> whpsleep) (icdxcnt -> aborw1) (icdxcnt -> aborw2) (icdxcnt -> crhrw2) if gender==2, vce(cluster id) cov( e.cumdose2*e.cumdose3 e.goferw2*e.crhrw2 e.aborw2*e.aborw3 e.aborw3*e.crhrw3) nocapslatent
(2 observations with missing values excluded;
 specify option 'method(mlmv)' to use all observations)

Endogenous variables


Observed:  cumdose1 cumdose2 cumdose3 whpsleep whpel whppa goferw1 goferw2 aborw3 crhrw2 aborw2 aborw1 crhrw3


Exogenous variables


Observed:  fdferw1 crhrw1 icdxcnt


Fitting target model:

Iteration 0:   log pseudolikelihood =  -13748.18  (not concave)
Iteration 1:   log pseudolikelihood = -13540.825
Iteration 2:   log pseudolikelihood = -13473.859
Iteration 3:   log pseudolikelihood = -13440.135
Iteration 4:   log pseudolikelihood = -13436.996
Iteration 5:   log pseudolikelihood = -13436.967
Iteration 6:   log pseudolikelihood = -13436.967

Structural equation model                       Number of obs      =       361
 Estimation method = ml
 Log pseudolikelihood = -13436.967

(Std. Err. adjusted for 361 clusters in id)
---------------+----------------------------------------------------------------
               |               Robust
               |      Coef.    Std. Err.       z    P>|z|      [95% Con f. Interval]
---------------+----------------------------------------------------------------
 Structural     |
   cumdose1 <-  |
       goferw1 |    .0032023    .0011962      2.68    0.007      .0008578     .0055467
         _cons |    .2413505     .019026     12.69    0.000      .2040602     .2786408
  -------------+----------------------------------------------------------------
   cumdose2 <-  |
      cumdose1 |     2.18886     .083603     26.18    0.000      2.025001     2.352719
         _cons |    .1616705    .0419462      3.85    0.000      .0794575     .2438836
  -------------+----------------------------------------------------------------
   cumdose3 <-  |
      cumdose2 |    1.228932    .0352197     34.89    0.000      1.159902     1.297961
       goferw2 |    .0024603    .0012627      1.95    0.051     -.0000146     .0049352
         _cons |    .0812865    .0294283      2.76    0.006      .0236081     .1389649
  -------------+----------------------------------------------------------------
   whpsleep <-  |
        aborw2 |   -4.233705    1.644764     -2.57    0.010     -7.457384    -1.010027
        crhrw3 |    8.759233    1.749043      5.01    0.000      5.331171     12.18729
       icdxcnt |    2.523497    .7810614      3.23    0.001      .9926446     4.054349
         _cons |    18.19965    2.678384      6.80    0.000      12.95012     23.44919
  -------------+----------------------------------------------------------------
   whpel <-     |
      whpsleep |    .5418411     .053608     10.11    0.000      .4367713     .6469108
        crhrw3 |    4.486308    1.788977      2.51    0.012      .9799771     7.992638
         _cons |    16.95847     1.92508      8.81    0.000      13.18539     20.73156
  -------------+----------------------------------------------------------------
   whppa <-     |
      whpsleep |    .2177445    .0397755      5.47    0.000       .139786      .295703
         whpel |    .2186883    .0347415      6.29    0.000      .1505961     .2867804
        aborw3 |   -4.971303    1.627593     -3.05    0.002     -8.161327     -1.78128
        crhrw3 |    2.707541    .9684807      2.80    0.005       .809354     4.605729
         _cons |    5.980459    1.127836      5.30    0.000      3.769941     8.190978
  -------------+----------------------------------------------------------------
   goferw1 <-   |
       fdferw1 |    .6985567    .0405626     17.22    0.000      .6190554      .778058
         _cons |    3.436444    1.396699      2.46    0.014      .6989635     6.173924
  -------------+----------------------------------------------------------------
   goferw2 <-   |
       goferw1 |    .1467846    .0374639      3.92    0.000      .0733566     .2202125
       fdferw1 |    .0702821      .02815      2.50    0.013      .0151091     .1254552
         _cons |    1.116902    .8204754      1.36    0.173     -.4912003     2.725004
  -------------+----------------------------------------------------------------
   aborw3 <-    |
       goferw1 |   -.0016422    .0005981     -2.75    0.006     -.0028144      -.00047
         _cons |    .1733552    .0359345      4.82    0.000      .1029249     .2437855
  -------------+----------------------------------------------------------------
   crhrw2 <-    |
       goferw1 |    .0046191     .000923      5.00    0.000        .00281     .0064283
        crhrw1 |    .6194044    .0372516     16.63    0.000      .5463925     .6924162
       icdxcnt |    .0477625    .0151675      3.15    0.002      .0180348     .0774902
         _cons |   -.1983836    .0594983     -3.33    0.001     -.3149983     -.081769
  -------------+----------------------------------------------------------------
   aborw2 <-    |
       goferw2 |   -.0043521    .0015136     -2.88    0.004     -.0073186    -.0013855
       icdxcnt |    .0433149    .0219053      1.98    0.048      .0003813     .0862486
         _cons |    .2192323    .0636457      3.44    0.001       .094489     .3439756
  -------------+----------------------------------------------------------------
   aborw1 <-    |
        crhrw1 |    .1926739    .0548624      3.51    0.000      .0851454     .3002023
       icdxcnt |    .0548145    .0225188      2.43    0.015      .0106784     .0989506
         _cons |    .0748925    .0682257      1.10    0.272     -.0588274     .2086124
  -------------+----------------------------------------------------------------
   crhrw3 <-    |
        crhrw2 |    1.043845    .0277145     37.66    0.000      .9895253     1.098164
        aborw1 |   -.0414874    .0137175     -3.02    0.002     -.0683732    -.0146016
        crhrw1 |   -.1068446    .0314328     -3.40    0.001     -.1684517    -.0452375
         _cons |    .0185662    .0159832      1.16    0.245     -.0127603     .0498928
---------------+----------------------------------------------------------------
 Variance       |
    e.cumdose1 |    .2890055    .1001246                    .1465586     .5699029
    e.cumdose2 |    .4618044    .2566491                    .1553819     1.372511
    e.cumdose3 |     .087367    .0322766                    .0423528     .1802241
    e.whpsleep |    843.9022     64.0204                    727.3073     979.1884
       e.whpel |    850.5979    59.92645                    740.8927     976.5473
       e.whppa |    274.2456    26.72383                    226.5659     331.9593
     e.goferw1 |    608.3375     68.8233                    487.3548     759.3534
     e.goferw2 |    247.6323     39.5962                    181.0093     338.7769
      e.aborw3 |    .1730736    .0395079                    .1106434       .27073
      e.crhrw2 |    .3643757    .0378495                    .2972561     .4466506
      e.aborw2 |    .5146966    .0851243                    .3721973     .7117529
      e.aborw1 |    .7700159    .3733713                    .2976888      1.99176
      e.crhrw3 |    .0793903    .0122786                    .0586299     .1075017
---------------+----------------------------------------------------------------
 Covariance     |
   e.cumdose2   |
    e.cumdose3 |     .042052     .074167      0.57    0.571     -.1033126     .1874166
  -------------+----------------------------------------------------------------
   e.goferw2    |
      e.crhrw2 |    1.235576    .5105715      2.42    0.016      .2348745     2.236278
  -------------+----------------------------------------------------------------
   e.aborw3     |
      e.aborw2 |    .0314257    .0305258      1.03    0.303     -.0284039     .0912552
      e.crhrw3 |    .0146636    .0118402      1.24    0.216     -.0085427       .03787
---------------+----------------------------------------------------------------
.
. estat teffects, standardized


Direct effects
(Std. Err. adjusted for 361 clusters in id)
--------------+----------------------------------------------------------------
              |               Robust
              |      Coef.    Std. Err.       z    P>|z|             Std. Coef.
--------------+----------------------------------------------------------------
 Structural    |
   cumdose1 <- |
      goferw1 |    .0032023    .0011962      2.68    0.007             .2104657
      fdferw1 |           0   (no path)                                       0
  ------------+----------------------------------------------------------------
   cumdose2 <- |
     cumdose1 |     2.18886     .083603     26.18    0.000             .8708033
      goferw1 |           0   (no path)                                       0
      fdferw1 |           0   (no path)                                       0
  ------------+----------------------------------------------------------------
   cumdose3 <- |
     cumdose1 |           0   (no path)                                       0
     cumdose2 |    1.228932    .0352197     34.89    0.000             .9664745
      goferw1 |           0   (no path)                                       0
      goferw2 |    .0024603    .0012627      1.95    0.051             .0243841
      fdferw1 |           0   (no path)                                       0
  ------------+----------------------------------------------------------------
   whpsleep <- |
      goferw1 |           0   (no path)                                       0
      goferw2 |           0   (no path)                                       0
       crhrw2 |           0   (no path)                                       0
       aborw2 |   -4.233705    1.644764     -2.57    0.010            -.0999854
       aborw1 |           0   (no path)                                       0
       crhrw3 |    8.759233    1.749043      5.01    0.000             .2515391
      fdferw1 |           0   (no path)                                       0
       crhrw1 |           0   (no path)                                       0
      icdxcnt |    2.523497    .7810614      3.23    0.001             .1899395
  ------------+----------------------------------------------------------------
   whpel <-    |
     whpsleep |    .5418411     .053608     10.11    0.000             .4860795
      goferw1 |           0   (no path)                                       0
      goferw2 |           0   (no path)                                       0
       crhrw2 |           0   (no path)                                       0
       aborw2 |           0   (no path)                                       0
       aborw1 |           0   (no path)                                       0
       crhrw3 |    4.486308    1.788977      2.51    0.012              .115575
      fdferw1 |           0   (no path)                                       0
       crhrw1 |           0   (no path)                                       0
      icdxcnt |           0   (no path)                                       0
  ------------+----------------------------------------------------------------
   whppa <-    |
     whpsleep |    .2177445    .0397755      5.47    0.000             .3143344
        whpel |    .2186883    .0347415      6.29    0.000             .3519126
      goferw1 |           0   (no path)                                       0
      goferw2 |           0   (no path)                                       0
       aborw3 |   -4.971303    1.627593     -3.05    0.002            -.0978355
       crhrw2 |           0   (no path)                                       0
       aborw2 |           0   (no path)                                       0
       aborw1 |           0   (no path)                                       0
       crhrw3 |    2.707541    .9684807      2.80    0.005              .112243
      fdferw1 |           0   (no path)                                       0
       crhrw1 |           0   (no path)                                       0
      icdxcnt |           0   (no path)                                       0
  ------------+----------------------------------------------------------------
   goferw1 <-  |
      fdferw1 |    .6985567    .0405626     17.22    0.000             .7309543
  ------------+----------------------------------------------------------------
   goferw2 <-  |
      goferw1 |    .1467846    .0374639      3.92    0.000             .3045433
      fdferw1 |    .0702821      .02815      2.50    0.013             .1525816
  ------------+----------------------------------------------------------------
   aborw3 <-   |
      goferw1 |   -.0016422    .0005981     -2.75    0.006            -.1412366
      fdferw1 |           0   (no path)                                       0
  ------------+----------------------------------------------------------------
   crhrw2 <-   |
      goferw1 |    .0046191     .000923      5.00    0.000             .1917468
      fdferw1 |           0   (no path)                                       0
       crhrw1 |    .6194044    .0372516     16.63    0.000             .6719865
      icdxcnt |    .0477625    .0151675      3.15    0.002             .1272799
  ------------+----------------------------------------------------------------
   aborw2 <-   |
      goferw1 |           0   (no path)                                       0
      goferw2 |   -.0043521    .0015136     -2.88    0.004            -.1041398
      fdferw1 |           0   (no path)                                       0
      icdxcnt |    .0433149    .0219053      1.98    0.048             .1380493
  ------------+----------------------------------------------------------------
   aborw1 <-   |
       crhrw1 |    .1926739    .0548624      3.51    0.000             .2017199
      icdxcnt |    .0548145    .0225188      2.43    0.015              .140964
  ------------+----------------------------------------------------------------
   crhrw3 <-   |
      goferw1 |           0   (no path)                                       0
       crhrw2 |    1.043845    .0277145     37.66    0.000             1.026683
       aborw1 |   -.0414874    .0137175     -3.02    0.002            -.0422841
      fdferw1 |           0   (no path)                                       0
       crhrw1 |   -.1068446    .0314328     -3.40    0.001             -.114009
      icdxcnt |           0   (no path)                                       0
--------------+----------------------------------------------------------------


Indirect effects
(Std. Err. adjusted for 361 clusters in id)
--------------+----------------------------------------------------------------
              |               Robust
              |      Coef.    Std. Err.       z    P>|z|             Std. Coef.
--------------+----------------------------------------------------------------
 Structural    |
   cumdose1 <- |
      goferw1 |           0   (no path)                                       0
      fdferw1 |     .002237    .0008441      2.65    0.008             .1538408
  ------------+----------------------------------------------------------------
   cumdose2 <- |
     cumdose1 |           0   (no path)                                       0
      goferw1 |    .0070093    .0026183      2.68    0.007             .1832742
      fdferw1 |    .0048964     .001862      2.63    0.009             .1339651
  ------------+----------------------------------------------------------------
   cumdose3 <- |
     cumdose1 |    2.689959    .1027424     26.18    0.000             .8416091
     cumdose2 |           0   (no path)                                       0
      goferw1 |    .0089751    .0032081      2.80    0.005             .1845559
      goferw2 |           0   (no path)                                       0
      fdferw1 |    .0064425    .0023457      2.75    0.006             .1386225
  ------------+----------------------------------------------------------------
   whpsleep <- |
      goferw1 |    .0449386    .0085784      5.24    0.000             .0526898
      goferw2 |    .0184253     .006408      2.88    0.004             .0104125
       crhrw2 |    9.143278    .2427575     37.66    0.000             .2582508
       aborw2 |           0   (no path)                                       0
       aborw1 |   -.3633976    .1201547     -3.02    0.002            -.0106361
       crhrw3 |           0   (no path)                                       0
      fdferw1 |    .0326872     .009439      3.46    0.001             .0401026
       crhrw1 |    4.657493    .9949073      4.68    0.000             .1427178
      icdxcnt |    .2334035    .1996673      1.17    0.242             .0175679
  ------------+----------------------------------------------------------------
   whpel <-    |
     whpsleep |           0   (no path)                                       0
      goferw1 |    .0459811    .0089637      5.13    0.000             .0483639
      goferw2 |    .0099836    .0034721      2.88    0.004             .0050613
       crhrw2 |    9.637212    .2558717     37.66    0.000             .2441893
       aborw2 |   -2.293995    .8912008     -2.57    0.010            -.0486009
       aborw1 |   -.3830289    .1266456     -3.02    0.002             -.010057
       crhrw3 |    4.746112    .9477034      5.01    0.000              .122268
      fdferw1 |     .032822    .0101012      3.25    0.001             .0361241
       crhrw1 |    4.909098    1.068272      4.60    0.000              .134947
      icdxcnt |    1.707272    .4837175      3.53    0.000             .1152791
  ------------+----------------------------------------------------------------
   whppa <-    |
     whpsleep |    .1184943    .0117234     10.11    0.000             .1710575
        whpel |           0   (no path)                                       0
      goferw1 |    .0410593    .0072001      5.70    0.000             .0694965
      goferw2 |    .0061953    .0021546      2.88    0.004             .0050541
       aborw3 |           0   (no path)                                       0
       crhrw2 |    6.924696    .1838533     37.66    0.000             .2823483
       aborw2 |   -1.423536    .5530335     -2.57    0.010            -.0485321
       aborw1 |   -.2752206    .0909996     -3.02    0.002            -.0116286
       crhrw3 |    3.926296    .7174697      5.47    0.000             .1627673
      fdferw1 |    .0291177    .0076295      3.82    0.000               .05157
       crhrw1 |     3.52737    .7230356      4.88    0.000             .1560349
      icdxcnt |    1.102492     .321185      3.43    0.001             .1197933
  ------------+----------------------------------------------------------------
   goferw1 <-  |
      fdferw1 |           0   (no path)                                       0
  ------------+----------------------------------------------------------------
   goferw2 <-  |
      goferw1 |           0   (no path)                                       0
      fdferw1 |    .1025373    .0266365      3.85    0.000             .2226072
  ------------+----------------------------------------------------------------
   aborw3 <-   |
      goferw1 |           0   (no path)                                       0
      fdferw1 |   -.0011472    .0004262     -2.69    0.007            -.1032375
  ------------+----------------------------------------------------------------
   crhrw2 <-   |
      goferw1 |           0   (no path)                                       0
      fdferw1 |    .0032267    .0006904      4.67    0.000             .1401582
       crhrw1 |           0   (no path)                                       0
      icdxcnt |           0   (no path)                                       0
  ------------+----------------------------------------------------------------
   aborw2 <-   |
      goferw1 |   -.0006388     .000163     -3.92    0.000            -.0317151
      goferw2 |           0   (no path)                                       0
      fdferw1 |   -.0007521     .000271     -2.78    0.006            -.0390721
      icdxcnt |           0   (no path)                                       0
  ------------+----------------------------------------------------------------
   aborw1 <-   |
       crhrw1 |           0   (no path)                                       0
      icdxcnt |           0   (no path)                                       0
  ------------+----------------------------------------------------------------
   crhrw3 <-   |
      goferw1 |    .0048217    .0009635      5.00    0.000             .1968632
       crhrw2 |           0   (no path)                                       0
       aborw1 |           0   (no path)                                       0
      fdferw1 |    .0033682    .0007413      4.54    0.000              .143898
       crhrw1 |    .6385684    .0473287     13.49    0.000             .6813874
      icdxcnt |    .0475825    .0160382      2.97    0.003             .1247155
--------------+----------------------------------------------------------------


Total effects
(Std. Err. adjusted for 361 clusters in id)
--------------+----------------------------------------------------------------
              |               Robust
              |      Coef.    Std. Err.       z    P>|z|             Std. Coef.
--------------+----------------------------------------------------------------
 Structural    |
   cumdose1 <- |
      goferw1 |    .0032023    .0011962      2.68    0.007             .2104657
      fdferw1 |     .002237    .0008441      2.65    0.008             .1538408
  ------------+----------------------------------------------------------------
   cumdose2 <- |
     cumdose1 |     2.18886     .083603     26.18    0.000             .8708033
      goferw1 |    .0070093    .0026183      2.68    0.007             .1832742
      fdferw1 |    .0048964     .001862      2.63    0.009             .1339651
  ------------+----------------------------------------------------------------
   cumdose3 <- |
     cumdose1 |    2.689959    .1027424     26.18    0.000             .8416091
     cumdose2 |    1.228932    .0352197     34.89    0.000             .9664745
      goferw1 |    .0089751    .0032081      2.80    0.005             .1845559
      goferw2 |    .0024603    .0012627      1.95    0.051             .0243841
      fdferw1 |    .0064425    .0023457      2.75    0.006             .1386225
  ------------+----------------------------------------------------------------
   whpsleep <- |
      goferw1 |    .0449386    .0085784      5.24    0.000             .0526898
      goferw2 |    .0184253     .006408      2.88    0.004             .0104125
       crhrw2 |    9.143278    .2427575     37.66    0.000             .2582508
       aborw2 |   -4.233705    1.644764     -2.57    0.010            -.0999854
       aborw1 |   -.3633976    .1201547     -3.02    0.002            -.0106361
       crhrw3 |    8.759233    1.749043      5.01    0.000             .2515391
      fdferw1 |    .0326872     .009439      3.46    0.001             .0401026
       crhrw1 |    4.657493    .9949073      4.68    0.000             .1427178
      icdxcnt |      2.7569    .7809316      3.53    0.000             .2075074
  ------------+----------------------------------------------------------------
   whpel <-    |
     whpsleep |    .5418411     .053608     10.11    0.000             .4860795
      goferw1 |    .0459811    .0089637      5.13    0.000             .0483639
      goferw2 |    .0099836    .0034721      2.88    0.004             .0050613
       crhrw2 |    9.637212    .2558717     37.66    0.000             .2441893
       aborw2 |   -2.293995    .8912008     -2.57    0.010            -.0486009
       aborw1 |   -.3830289    .1266456     -3.02    0.002             -.010057
       crhrw3 |     9.23242    2.053131      4.50    0.000              .237843
      fdferw1 |     .032822    .0101012      3.25    0.001             .0361241
       crhrw1 |    4.909098    1.068272      4.60    0.000              .134947
      icdxcnt |    1.707272    .4837175      3.53    0.000             .1152791
  ------------+----------------------------------------------------------------
   whppa <-    |
     whpsleep |    .3362388    .0421143      7.98    0.000             .4853919
        whpel |    .2186883    .0347415      6.29    0.000             .3519126
      goferw1 |    .0410593    .0072001      5.70    0.000             .0694965
      goferw2 |    .0061953    .0021546      2.88    0.004             .0050541
       aborw3 |   -4.971303    1.627593     -3.05    0.002            -.0978355
       crhrw2 |    6.924696    .1838533     37.66    0.000             .2823483
       aborw2 |   -1.423536    .5530335     -2.57    0.010            -.0485321
       aborw1 |   -.2752206    .0909996     -3.02    0.002            -.0116286
       crhrw3 |    6.633838    1.264709      5.25    0.000             .2750103
      fdferw1 |    .0291177    .0076295      3.82    0.000               .05157
       crhrw1 |     3.52737    .7230356      4.88    0.000             .1560349
      icdxcnt |    1.102492     .321185      3.43    0.001             .1197933
  ------------+----------------------------------------------------------------
   goferw1 <-  |
      fdferw1 |    .6985567    .0405626     17.22    0.000             .7309543
  ------------+----------------------------------------------------------------
   goferw2 <-  |
      goferw1 |    .1467846    .0374639      3.92    0.000             .3045433
      fdferw1 |    .1728195    .0264222      6.54    0.000             .3751888
  ------------+----------------------------------------------------------------
   aborw3 <-   |
      goferw1 |   -.0016422    .0005981     -2.75    0.006            -.1412366
      fdferw1 |   -.0011472    .0004262     -2.69    0.007            -.1032375
  ------------+----------------------------------------------------------------
   crhrw2 <-   |
      goferw1 |    .0046191     .000923      5.00    0.000             .1917468
      fdferw1 |    .0032267    .0006904      4.67    0.000             .1401582
       crhrw1 |    .6194044    .0372516     16.63    0.000             .6719865
      icdxcnt |    .0477625    .0151675      3.15    0.002             .1272799
  ------------+----------------------------------------------------------------
   aborw2 <-   |
      goferw1 |   -.0006388     .000163     -3.92    0.000            -.0317151
      goferw2 |   -.0043521    .0015136     -2.88    0.004            -.1041398
      fdferw1 |   -.0007521     .000271     -2.78    0.006            -.0390721
      icdxcnt |    .0433149    .0219053      1.98    0.048             .1380493
  ------------+----------------------------------------------------------------
   aborw1 <-   |
       crhrw1 |    .1926739    .0548624      3.51    0.000             .2017199
      icdxcnt |    .0548145    .0225188      2.43    0.015              .140964
  ------------+----------------------------------------------------------------
   crhrw3 <-   |
      goferw1 |    .0048217    .0009635      5.00    0.000             .1968632
       crhrw2 |    1.043845    .0277145     37.66    0.000             1.026683
       aborw1 |   -.0414874    .0137175     -3.02    0.002            -.0422841
      fdferw1 |    .0033682    .0007413      4.54    0.000              .143898
       crhrw1 |    .5317238    .0419139     12.69    0.000             .5673784
      icdxcnt |    .0475825    .0160382      2.97    0.003             .1247155
--------------+----------------------------------------------------------------

. estat framework
(model contains no latent variables)


Endogenous variables on endogenous variables


                 | observed
    Beta   | cumdose1    cumdose2    cumdose3    whpsleep    whpel    whppa    goferw1    goferw2    aborw3    crhrw2
    -------------+--------------------------------------------------------------------------------------------------------------
    observed  |
    cumdose1   |         0            0            0            0            0            0     .0032023            0            0            0
    cumdose2   |   2.18886            0            0            0            0            0            0            0            0            0
    cumdose3   |         0     1.228932            0            0            0            0            0     .0024603            0            0
    whpsleep   |         0            0            0            0            0            0            0            0            0            0
    whpel   |         0            0            0     .5418411            0            0            0            0            0            0
    whppa   |         0            0            0     .2177445     .2186883            0            0            0    -4.971303            0
    goferw1   |         0            0            0            0            0            0            0            0            0            0
    goferw2   |         0            0            0            0            0            0     .1467846            0            0            0
    aborw3   |         0            0            0            0            0            0    -.0016422            0            0            0
    crhrw2   |         0            0            0            0            0            0     .0046191            0            0            0
    aborw2   |         0            0            0            0            0            0            0    -.0043521            0            0
    aborw1   |         0            0            0            0            0            0            0            0            0            0
    crhrw3   |         0            0            0            0            0            0            0            0            0     1.043845
    -------------+--------------------------------------------------------------------------------------------------------------

                 | observed
    Beta   | aborw2    aborw1    crhrw3
    -------------+---------------------------------
    observed  |
    cumdose1   |         0            0            0
    cumdose2   |         0            0            0
    cumdose3   |         0            0            0
    whpsleep   | -4.233705            0     8.759233
    whpel   |         0            0     4.486308
    whppa   |         0            0     2.707541
    goferw1   |         0            0            0
    goferw2   |         0            0            0
    aborw3   |         0            0            0
    crhrw2   |         0            0            0
    aborw2   |         0            0            0
    aborw1   |         0            0            0
    crhrw3   |         0    -.0414874            0
    -------------+---------------------------------


Exogenous variables on endogenous variables


                 | observed
    Gamma   | fdferw1    crhrw1    icdxcnt
    -------------+---------------------------------
    observed  |
    cumdose1   |         0            0            0
    cumdose2   |         0            0            0
    cumdose3   |         0            0            0
    whpsleep   |         0            0     2.523497
    whpel   |         0            0            0
    whppa   |         0            0            0
    goferw1   |  .6985567            0            0
    goferw2   |  .0702821            0            0
    aborw3   |         0            0            0
    crhrw2   |         0     .6194044     .0477625
    aborw2   |         0            0     .0433149
    aborw1   |         0     .1926739     .0548145
    crhrw3   |         0    -.1068446            0
    -------------+---------------------------------


Covariances of error variables


                 | observed
    Psi   | e.cumdo~1    e.cumdo~2    e.cumdo~3    e.whpsl~p    e.whpel    e.whppa    e.goferw1    e.goferw2    e.aborw3    e.crhrw2
    -------------+--------------------------------------------------------------------------------------------------------------
    observed  |
    e.cumdose1   |  .2890055
    e.cumdose2   |         0     .4618044
    e.cumdose3   |         0      .042052      .087367
    e.whpsleep   |         0            0            0     843.9022
    e.whpel   |         0            0            0            0     850.5979
    e.whppa   |         0            0            0            0            0     274.2456
    e.goferw1   |         0            0            0            0            0            0     608.3375
    e.goferw2   |         0            0            0            0            0            0            0     247.6323
    e.aborw3   |         0            0            0            0            0            0            0            0     .1730736
    e.crhrw2   |         0            0            0            0            0            0            0     1.235576            0     .3643757
    e.aborw2   |         0            0            0            0            0            0            0            0     .0314257            0
    e.aborw1   |         0            0            0            0            0            0            0            0            0            0
    e.crhrw3   |         0            0            0            0            0            0            0            0     .0146636            0
    -------------+--------------------------------------------------------------------------------------------------------------

                 | observed
    Psi   | e.aborw2    e.aborw1    e.crhrw3
    -------------+---------------------------------
    observed  |
    e.aborw2   |  .5146966
    e.aborw1   |         0     .7700159
    e.crhrw3   |         0            0     .0793903
    -------------+---------------------------------


Intercepts of endogenous variables


                 | observed
    alpha   | cumdose1    cumdose2    cumdose3    whpsleep    whpel    whppa    goferw1    goferw2    aborw3    crhrw2
    -------------+--------------------------------------------------------------------------------------------------------------
    _cons   |  .2413505     .1616705     .0812865     18.19965     16.95847     5.980459     3.436444     1.116902     .1733552    -.1983836
    -------------+--------------------------------------------------------------------------------------------------------------

                 | observed
    alpha   | aborw2    aborw1    crhrw3
    -------------+---------------------------------
    _cons   |  .2192323     .0748925     .0185662
    -------------+---------------------------------


Covariances of exogenous variables


                 | observed
    Phi   | fdferw1    crhrw1    icdxcnt
    -------------+---------------------------------
    observed  |
    fdferw1   |  1430.243
    crhrw1   |  5.855767     .8922183
    icdxcnt   |  8.811228    -.2519818     5.383246
    -------------+---------------------------------


Means of exogenous variables


                 | observed
    kappa   | fdferw1    crhrw1    icdxcnt
    -------------+---------------------------------
    mean   |  37.53463     .1322862     3.171745
    -------------+---------------------------------