Hi All,
I would like to post-estimate marginal effects by group after executing reg3 or xtivreg. For instance,
[PHP][/reg3 (x y z a1 a2 a3 i.qtr)(y x z a4 a5 a6 a7 i.ID i.qtr)(z x y a1 a2 a3 i.ID i.qtr),endog(x y z) small]
OR
[PHP][/xtivreg y a4 a5 a6 a7 i.ID i.qtr (x z = a1 a2 a3)]
However, when I run
For reg3, [PHP][/margins, dydx(x) at(z=(1(1)5)) predict(equation(#2)) noestimcheck] OR [PHP][/margins ID, dydx(x) predict(equation(#2)) noestimcheck]
For xtivreg, [PHP][/margins, dydx(x) at(z=(1(1)5)) noestimcheck] OR [PHP][/margins ID, dydx(x) noestimcheck]
The results show no difference in dydx across groups. I do expect variations between groups, may I ask for your help to check if I get wrong in the codes? Many thanks.
Average marginal effects Number of obs = 2580
Model VCE : Conventional
Expression : Linear prediction, predict()
dy/dx w.r.t. : x
1._at : z = 1
2._at : z = 2
3._at : z = 3
4._at : z = 4
5._at : z = 5
------------------------------------------------------------------------------
| Delta-method
| dy/dx Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
x |
_at |
1 | .7323913 .1124872 6.51 0.000 .5119203 .9528622
2 | .7323913 .1124872 6.51 0.000 .5119203 .9528622
3 | .7323913 .1124872 6.51 0.000 .5119203 .9528622
4 | .7323913 .1124872 6.51 0.000 .5119203 .9528622
5 | .7323913 .1124872 6.51 0.000 .5119203 .9528622
------------------------------------------------------------------------------
Related Posts with Marginal Effects of Simultaneous Equation Systems or IV-Regressions
generating dummy variable in panel data (firm-wise)Respectable Professors, Hope everyone is blessed with good health. I've panel dataset, SARS = con…
Calculation of mean costs per patient and per type of admissionHello everyone, I have a dataset consisting of two groups of patients (control and intervention) wit…
Testing Parallel Trend AssumptionI'm working on a Difference-in-Difference model. Unfortunately, I have very little experience with t…
=="" invalid name (invalid syntax error)When I run a local variable through an if statement, it gives me the invalid name error Code: l…
Sensitivity and specificity interpretationHi, I've run an experimental survey (this is social science), with two treatment variables, using l…
Subscribe to:
Post Comments (Atom)
0 Response to Marginal Effects of Simultaneous Equation Systems or IV-Regressions
Post a Comment