[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: how to run nbreg with "if" command?
Dear stata users;
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?
Thank you very much,
* For searches and help try: