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

st: AW: about the command by

From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: about the command by
Date   Fri, 18 Sep 2009 23:11:32 +0200


As [U], p. 145, says: " Observe that the relational operator for equality is
a pair of equal signs. This convention distinguishes relational equality
from the =exp assignment phrase." 

The -bysort- statement in my earlier post is probably redundant, given that
Stata did not complain about any lack of it when the relational operator ">"
was used, but it certainly won`t hurt you. You can always -describe- your
data to see whether they are already sorted by any variable...


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von amatoallah
Gesendet: Freitag, 18. September 2009 23:06
An: [email protected]
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:

*   For searches and help try:

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