Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Marginal effects


From   "Tamas Bartus (tbartus)" <[email protected]>
To   [email protected]
Subject   Re: st: Marginal effects
Date   Sun, 20 Apr 2008 14:48:16 +0200

>  "Joao Ricardo F. Lima" <[email protected]> wrote:

> If I use a command as the mfx - the marginal effect just
> considers the associated coefficient the education and the correct would
> be:
> 
>     dy/d.education = 1 + 2.education(mean) + experience (mean)

I believe my margeff package can produce easily what you want to obtain. 
After estimating your mlogit model, try the following code:


margeff , at(mean) replace
qui su education
local m1 = r(mean)   // getting the mean of education
qui su experience
local m2 = r(mean)   // getting the mean of experience
// calculating dy/d.education = 1 + 2.education(mean) + experience (mean) 
lincom education + 2*`m1'*education + `m2'*experience


If your derivative contains products of variables as well, use nlcom instead.

Hope this helps,

Tamas 

------------------------------------------------

Tamas Bartus, PhD
Associate Professor, Institute of Sociology and Social Policy
Corvinus University, Budapest 
1093 Budapest, Közraktár utca 4-6.
Phone:  +36-1-482-7301         
Fax:      +36-1-482-7348
Homepage: www.uni-corvinus.hu/bartus


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index