Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Richard Williams <richardwilliams.ndu@gmail.com> |
To | statalist@hsphsun2.harvard.edu, "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
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: Richard.A.Williams.5@ND.Edu 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/