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: Interaction and constraint


From   Christopher Baum <[email protected]>
To   <[email protected]>
Subject   re:st: Interaction and constraint
Date   Sun, 2 Jan 2011 15:49:29 -0500

<>
Now I want to simply the model by constrainning the second
(2.group#c.age) and the third terms (3.group#c.age) to be equal
(suppose that will improve the model fit), how should I do this?


With complete generality (which you can apply to other estimators, whether or not they allow constraint options),

use http://www.stata-press.com/data/r11/fvex, clear
g group23 = group==2 | group==3
regress y i.group i.group#c.age
regress y i.group group23#c.age

Kit



Kit Baum   |   Boston College Economics & DIW Berlin   |   http://ideas.repec.org/e/pba1.html
                              An Introduction to Stata Programming  |   http://www.stata-press.com/books/isp.html
   An Introduction to Modern Econometrics Using Stata  |   http://www.stata-press.com/books/imeus.html


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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