Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: how to use mfx with xtlogit


From   "is300gp" <[email protected]>
To   <[email protected]>
Subject   Re: st: how to use mfx with xtlogit
Date   Fri, 9 Jul 2004 21:21:20 -0700

Hi, Clive:

Thanks for the responding. But how come mine doesn't work? Here's the code:

. xtlogit internet education exp exp_2 marriage union job,fe

Results omitteed..............................

. mfx compute

predict() expression  unsuitable for marginal effect calculation
r(119);

The above is the error message. Could you tell me what's wrong?

I'll try -margin- command later.

Thanks a lot.




----- Original Message ----- 
From: "Clive Nicholas" <[email protected]>
To: <[email protected]>
Sent: Friday, July 09, 2004 9:10 PM
Subject: Re: st: how to use mfx with xtlogit


> Gang Peng wrote:
>
> > Could anybody tell me how to use mfx together with xtlogit?
> >
> > I use mfx computer after xtlogit, but it doesn't work.
>
> Using -mfx- after running a regression with -xtlogit- _does_ work, but it
> normally takes far too long if your original model contains a large number
> of observations; and I speak from bitter experience. A quicker alternative
> is to use Tamas Bartus' -margin-, downloadable from SSC.
>
> Note, however, that -margin- calculates the _average_ marginal effects
> across all observations, and _not_ the marginal effect at the mean of
> independent variables, which, by default, -mfx- calculates. It's your call
> as to which of these is preferable to you.
>
> CLIVE NICHOLAS        |t: 0(044)191 222 5969
> Politics              |e: [email protected]
> Newcastle University  |http://www.ncl.ac.uk/geps
> *
> *   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/
>

*
*   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