Statalist


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

st: AW: about the command by


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: about the command by
Date   Fri, 18 Sep 2009 23:06:13 +0200

<> 

Should be

*************
bysort country years: count if rt==0
*************



HTH
Martin

-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von amatoallah
ouchen
Gesendet: Freitag, 18. September 2009 23:06
An: statalist@hsphsun2.harvard.edu
Betreff: st: about the command by

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/


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index