Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: how to run nbreg with "if" command?

From   "Nick Cox" <>
To   <>
Subject   st: RE: how to run nbreg with "if" command?
Date   Mon, 14 Mar 2005 20:40:09 -0000

I can't reproduce this at all. Looks 
perfectly legal. 


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:

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