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 at the end of May, and its replacement, statalist.org is already up and running.


[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 <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/


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