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   Raymond <[email protected]>
To   [email protected]
Subject   Re: st: How to add restriction condition in Stata
Date   Fri, 29 Jul 2005 11:51:16 -0400

Thanks!
But the reason I make coeffients of age1 and age2 be equal is to solve
an identification
problem. So, I cann't just sum them up.


On 7/29/05, FEIVESON, ALAN H. (AL) (JSC-SK) (NASA)
<[email protected]> wrote:
> 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/
>

*
*   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