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

st: margfx puzzle


From   "Dimitriy V. Masterov" <dvmaster@lily.src.uchicago.edu>
To   Stata _ <statalist@hsphsun2.harvard.edu>
Subject   st: margfx puzzle
Date   Tue, 10 Aug 2004 18:52:30 -0500 (CDT)

Hello,

Could someone please explain why these two versions of margfx do not work?
According to the help, they are equivalent, but I get a cryptic syntax
error after the second.

Margfx also sometimes gives the AME for a subset of the explanatory
variables without any indication of why it dropped the others. The probit
runs without dropping anything.

If someone could explain this, I would be most grateful. This is my code:

use auto, clear
gen sex=round(uniform(),1) /* I wanted to add a binary var on RHS */

/* Method 1 */
margfx for*, contin(price mpg headroom) binary(sex) model(probit)

/* Method 2 */
probit for* price mpg headroom sex
margfx, qui


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