Also - you could just define a new variable that is the sum of age1 and age2
and use this instead of separate age variables:
gen agesum = age1 + age2
reg y agesum
Al Feiveson
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Richard Williams
Sent: Friday, July 29, 2005 10:41 AM
To: [email protected]; [email protected]
Subject: Re: st: How to add restriction condition in Stata
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/
*
* 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/