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: Question about average marginal effects for logit models with dummy variables


From   Richard Williams <[email protected]>
To   [email protected], "[email protected]" <[email protected]>
Subject   Re: st: Question about average marginal effects for logit models with dummy variables
Date   Mon, 08 Oct 2012 06:55:53 -0500

At 05:11 AM 10/8/2012, Bob Reed wrote:
Hi, When Stata calculates AMEs for logit models with dummy variables, does it "know" that the dummy variable is discrete, and calculate its marginal effect accordingly?

Bob Reed

If you use factor variable notation it does, e.g. if you do

logit y i.x1 x2 x3
margins, dydx(*)

x1 will be treated as discrete/categorical while x2 and x3 will be treated as continuous (even if they happen to be coded as 0/1 dichotomies).

For more see

http://www.nd.edu/~rwilliam/stats/Margins01.pdf

-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  [email protected]
WWW:    http://www.nd.edu/~rwilliam

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