Hello,
I am running two multinomial logistic regressions and I store the results:
( 1) = -.0004935
Then, I run the margins commands to get the marginal effects, which I save in two matrices:
Finally, I am trying to compare the marginal effects,
but I am getting an error:
What am I doing wrong?
What do these
mean?
How can I fix it and compare whether the marginal effects are equal or not?
Thanks
I am running two multinomial logistic regressions and I store the results:
Code:
mlogit A i.wave##c.B, noconstant base(0) noomitted noemptycells est store m1 mlogit C i.wave##c.B, noconstant base(0) noomitted noemptycells est store m2
Then, I run the margins commands to get the marginal effects, which I save in two matrices:
Code:
forval i = 1/1 { est res m1 margins, dydx(B) over(wave) pr(out(`i')) atmeans post margins, coeflegend matrix b_1 = e(b) est res m2 margins, dydx(B) over(wave) pr(out(`i')) atmeans post margins, coeflegend matrix b_2 = e(b) }
Code:
test b_1[1,1]=b_2[1,1] test b_1[1,2]=b_2[1,2] test b_1[1,3]=b_2[1,3]
Code:
. test b_1[1,1]=b_2[1,1] ( 1) = -.0004935 Constraint 1 dropped chi2( 0) = . Prob > chi2 = . . test b_1[1,2]=b_2[1,2] ( 1) = -.0781045 Constraint 1 dropped chi2( 0) = . Prob > chi2 = . . test b_1[1,3]=b_2[1,3] ( 1) = -.0161702 Constraint 1 dropped chi2( 0) = . Prob > chi2 = .
What am I doing wrong?
What do these
Code:
( 1) = -.0004935
How can I fix it and compare whether the marginal effects are equal or not?
Thanks
Comment