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:48:40 -0400

Hi, 
Thanks!
Acturally it's a poisson regression. For some reason, I have to let
the coefficients of age1 and age2 be equal.


On 7/29/05, Richard Williams <[email protected]> wrote:
> 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/



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