Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: about the command by


From   amatoallah ouchen <[email protected]>
To   [email protected]
Subject   st: about the command by
Date   Fri, 18 Sep 2009 23:05:46 +0200

good day stata listers
Sorry for the question, but I''m getting stuck on some very  simple matter,
I'want to compute the number of observations with the condition  Rt=0
by country and by years

so when I' ve put
. by country  years: count if rt=0
i've got the message:  exp not allowed

whereas when I've put
by country  years: count if rt<0 and by country  years: count if rt>0
there is no trouble

I'm really puzzled

 thanks a lot in  in advance!!!!
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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