I can't reproduce this at all. Looks
perfectly legal.
Nick
[email protected]
sarah smith
> I am trying to run nbreg as below;
>
> nbreg y x1 x2 if x3==1
>
> where x3 is a dummy variable and I want to do the regression only
> using the observations where x3 is equal to 1. However I receive an
> error message saying that "if is not allowed". Could you suggest a way
> to do this?
>
*
* 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/