Hi!
I’m using StataNow/SE 18.5 for Mac (Intel 64-bit).
GSEM sometimes breaks single equations into two equations. Is this a bug?
It leads to follow up issues with esttab (version 2.1.1 )
Example:
See how worries shows up twice?
This seems to lead to further issues with esttab. While this code works:
This code leads to issues:
See how the coefficients of PerceivedInequality and the constant is missing while treat shows up twice?
I can’t even run the code
While this code works fine:
Any idea on what is going on here?
I’m using StataNow/SE 18.5 for Mac (Intel 64-bit).
GSEM sometimes breaks single equations into two equations. Is this a bug?
It leads to follow up issues with esttab (version 2.1.1 )
Example:
Code:
gsem (treat -> PerceivedInequality) ///
(PerceivedInequality -> manipulationcheck1 manipulationcheck2) ///
(worries <- PerceivedInequality treat) ///
, nocapslatent latent(PerceivedInequality)
--------------------------------------------------------------------------------------------
| Coefficient Std. err. z P>|z| [95% conf. interval]
---------------------------+----------------------------------------------------------------
manipulationcheck1 |
PerceivedInequality | 1 (constrained)
_cons | 6.063231 .0815965 74.31 0.000 5.903305 6.223157
---------------------------+----------------------------------------------------------------
manipulationcheck2 |
PerceivedInequality | .5551072 .0952481 5.83 0.000 .3684244 .74179
_cons | 5.641399 .0936912 60.21 0.000 5.457768 5.82503
---------------------------+----------------------------------------------------------------
worries |
treat | .309179 .1616929 1.91 0.056 -.0077333 .6260914
---------------------------+----------------------------------------------------------------
PerceivedInequality |
treat | 1.210984 .1150321 10.53 0.000 .9855248 1.436442
---------------------------+----------------------------------------------------------------
worries |
PerceivedInequality | .2787906 .0660852 4.22 0.000 .149266 .4083151
_cons | 4.715864 .1005135 46.92 0.000 4.518861 4.912867
---------------------------+----------------------------------------------------------------
var(e.PerceivedInequality)| 2.437964 .4740489 1.66539 3.568937
---------------------------+----------------------------------------------------------------
var(e.manipulationcheck1)| .7888583 .4547422 .2548699 2.441627
var(e.manipulationcheck2)| 3.553667 .215075 3.15617 4.001227
var(e.worries)| 4.693476 .2185726 4.284051 5.142029
--------------------------------------------------------------------------------------------
This seems to lead to further issues with esttab. While this code works:
Code:
estout model3
----------------------------
(1)
manipulati~1
----------------------------
worries
treat 0.309
(1.91)
PerceivedI~y 0.279***
(4.22)
_cons 4.716***
(46.92)
----------------------------
N 991
----------------------------
t statistics in parentheses
* p<0.05, ** p<0.01, *** p<0.001
This code leads to issues:
Code:
esttab model3 model4, keep(worries:) drop(HNE1_other age sex2)
--------------------------------------------
(1) (2)
manipulati~1 manipulati~1
--------------------------------------------
worries
treat 0.309 0.332
(1.91) (1.91)
treat 0.309 0.332
(1.91) (1.91)
--------------------------------------------
N 991 874
--------------------------------------------
t statistics in parentheses
* p<0.05, ** p<0.01, *** p<0.001
I can’t even run the code
Code:
esttab model3 model4, keep(worries:) drop(_cons HNE1_other age sex2)
coefficient _cons not found
r(111);
Code:
esttab model3, keep(worries:) drop(_cons)
----------------------------
(1)
manipulati~1
----------------------------
worries
treat 0.309
(1.91)
PerceivedI~y 0.279***
(4.22)
----------------------------
N 991
----------------------------
t statistics in parentheses
* p<0.05, ** p<0.01, *** p<0.001
Any idea on what is going on here?

Comment