Bookmark and Share

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

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

Re: st: Error w/ "inteff" command

From   Christopher Baum <>
To   "" <>
Subject   Re: st: Error w/ "inteff" command
Date   Sat, 29 Dec 2012 15:51:46 +0000

Could anyone help me understand what I might be doing wrong? I am
running the following example using stata 9, 10 or 12:

webuse lbw2
gen agerace=age*race
probit  low age race agerace
inteff low age race agerace

What you are doing wrong is treating race, which is categorical with values 1,2,3, as if it was a dummy. -inteff- from SJ will handle a c-c interaction, and a c-i interaction, but not a set of interactions, which is what you need here. As you have Stata 12, you should have no problem doing it all with built-in commands:

webuse lbw2, clear
probit  low c.age##i.race
margins, dydx(_all)
margins, dydx(age) over(race)


Kit Baum   |   Boston College Economics & DIW Berlin   |
                             An Introduction to Stata Programming  |
  An Introduction to Modern Econometrics Using Stata  |

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index