Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Probit partial effects


From   Maarten Buis <[email protected]>
To   [email protected]
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index