Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: margin and gsem


From   Klaus Pforr <[email protected]>
To   statalist <[email protected]>
Subject   st: margin and gsem
Date   Fri, 23 Aug 2013 23:55:38 +0200

Dear listers,

I used some of the examples and tried to estimate margins of responses
and marginal effects. So far I could not manage to get estimate from
margin with any of the gsem examples.

I'm especially interested in multilevel mlogit models. I am fully
aware of the problems with the random part with this problem, but the
predict(fixedonly) option did not help in any way.

Just to give an idea, what I am talking about, I put in some examples:

* This is an mlogit. The problem does not change, when you run a logit
on only two outcomes
use http://www.stata-press.com/data/r13/gsem_lineup
gsem (i.chosen <- i.location i.suswhite i.witmale i.violent
M1[suspect]@1), mlogit
margin, predict(mu fixedonly)
margin, dydx(*) predict(mu fixedonly)

* This is a linear model. The problem does not change, when you break
the continous variable in
* groups and run logit or mlogit
use "http://www.stata-press.com/data/r13/gsem_fifeschool";, clear
gsem (attain <- vrq i.sex M1[pid] M2[sid]),
margin, predict(mu fixedonly)
margin, dydx(*) predict(mu fixedonly)

Has anyone worked with an gsem example, in which margins worked?

best wishes

Klaus

-- 
__________________________________
Klaus Pforr
GESIS -- Leibniz Institut für Sozialwissenschaft
B2,1
Postfach 122155
D - 68072 Mannheim
Tel: +49 621 1246 298
Fax: +49 621 1246 100
E-Mail: [email protected]
__________________________________

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index