Statalist The Stata Listserver


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

Re: st: margeff and svy: probit


From   [email protected]
To   [email protected]
Subject   Re: st: margeff and svy: probit
Date   Wed, 26 Jul 2006 15:58:48 -0500

----- Original Message -----
From: "Dimitriy V. Masterov" <[email protected]>
Date: Wednesday, July 26, 2006 2:33 pm
Subject: Re: st: margeff and svy: probit
To: [email protected]

> On 7/26/06, Richard Williams <[email protected]> wrote:
> > I just tried the following - given that margeff and mfx produce the
> > same results, I am guessing you are ok (but I can't guarantee it).
> >
> > use "http://www.stata-press.com/data/r9/nhanes2f.dta";
> > svy: probit  heartatk height weight female black
> > margeff, at(mean)
> > mfx
> > margeff, at(mean) model(probit)
> 
> I agree about the simple probit option. However,
> 
> margeff, at(mean) model(svy: probit)
> 
> yields a fairly different result.
> 

margeff, at(mean) model(svy: probit)

appears to be using the -eform- option.  Note, any two (space 
separated) terms will yield the same results:


. margeff, at(mean) model(garbage garbage)

Marginal effects at means on E(exp[xb]) after probit

-----------------------------------------------------------------------
-------
    heartatk |      Coef.   Std. Err.      z    P>|z|     [95% Conf. 
Interval]
-------------+---------------------------------------------------------
-------
      height |  -.0041219   .0006151    -6.70   0.000    -.0053275   -
.0029164
      weight |   .0011411   .0002983     3.82   
0.000     .0005563    .0017258
      female |  -.0920927   .0127091    -7.25   0.000     -.117002   -
.0671833
       black |  -.0132351   .0101956    -1.30   0.194    -
.0332181    .0067479
-----------------------------------------------------------------------
-------

. 

At first glance, it looks like line 54 should be changed from 

   SetSMacros `model' `eform' 
to 
   SetSMacros "`model'" "`eform'" 


This will result in:

. margeff, at(mean) model(garbage garbage)
-margeff- does not work with garbage garbage; use -mfx- instead


Scott




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