Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: How to add restriction condition in Stata


From   Richard Williams <[email protected]>
To   [email protected], [email protected]
Subject   Re: st: How to add restriction condition in Stata
Date   Fri, 29 Jul 2005 10:41:25 -0500

At 11:36 AM 7/29/2005 -0400, Raymond wrote:
Hi,
I need to add some restriction condition in a regression. I'm using a
set of dummies
for variable "age", and I want to set the coefficients of age1 to be
equal to age2.
How can this be done in Stata?
Thanks a lot.
ols regression?  See -help cnsreg-.  Or alternatively, do something like

reg y age1 age2
test age1=age2, coef

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index