Statalist


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

Re: st: Marginal effects


From   "Joao Ricardo F. Lima" <jricardofl@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Marginal effects
Date   Mon, 21 Apr 2008 12:06:39 -0300

Thanks Tamas,

I will try now!

Best Regards,

Joao Lima

2008/4/20, Tamas Bartus (tbartus) <tamas.bartus@uni-corvinus.hu>:
> >  "Joao Ricardo F. Lima" <jricardofl@gmail.com> 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/
>


-- 
-------------------------------
Joao Ricardo Lima
Professor
UFPB-CCA-DCFS
+553138923914
-------------------------------

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index