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

From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: Interaction and constraint
Date   Sun, 2 Jan 2011 20:42:21 +0000 (GMT)

--- On Sun, 2/1/11, Shige Song wrote:
> . use
> . regress y group#c.age
> Now I want to simply the model by constrainning the second
> ( and the third terms ( to be
> equal (suppose that will improve the model fit), how should
> I do this?
> In addition, assume this is a longitudinal data analysis
> situation and I am estimating a population average model
> using "xtlogit, pa", can I constrain the two terms to be equal?

I am old fashioned, I tend to impose constraints by creating
new variables.

*---------------- begin example ----------------
gen group2 = group
recode group2 (3=2)
regress y i.group2#c.age
*----------------- end example -----------------
(For more on examples I sent to the Statalist see: )

You can use the same trick for -xtlogit-.

Hope this helps,

Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen


*   For searches and help try:

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