Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Probit partial effects


From   Maarten Buis <maartenlbuis@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Probit partial effects
Date   Fri, 16 Nov 2012 13:00:02 +0100

On Fri, Nov 16, 2012 at 12:48 PM, Ozgur Ozdemir wrote:
> I would like to calculate the partial effects of an independent variable(X1) on different levels of another independent variable(x2) after the probit model. The command
>
> margins, dydx(X1) at (x2=(1(0.5)6) vsquich does work after the logistic but not after probit. I will appriciate your help to resolve the problem.

That command works for me after both -logit- and -probit-:
*------------------ begin example ------------------
sysuse nlsw88, clear
gen byte goodjob = occupation < 3 if occupation < .

logit union goodjob grade
margins , dydx(goodjob) at(grade=(6(1)18)) vsquish

probit union goodjob grade
margins , dydx(goodjob) at(grade=(6(1)18)) vsquish
*------------------- end example -------------------
( For more on how to use examples I sent to statalist see:
http://www.maartenbuis.nl/stata/exampleFAQ.html )

-- Maarten

---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany

http://www.maartenbuis.nl
---------------------------------
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index