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]
Subject   Re: st: How to add restriction condition in Stata
Date   Fri, 29 Jul 2005 11:01:25 -0500

At 11:51 AM 7/29/2005 -0400, Raymond wrote:
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.
I'm not sure how you are getting an identification problem in a poisson regression or how setting the effects for 2 dummies equal solves it. Maybe you should write out your model. But in any event, I think the test command I gave before will still work; and the poisson command does support constraints, so you could do

constraint 1 age1=age2
poisson y age1 age2, constraints(1)

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