Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: Conditional Counter


From   Gonzalo DURAN SANHUEZA <giduran@puc.cl>
To   statalist@hsphsun2.harvard.edu
Subject   st: Conditional Counter
Date   Mon, 15 Oct 2012 10:28:26 -0300

Dear Statalist-Member, I have a variable it contains numbers:

nnaadd
1234
3456
6543
7777
777
77
1267
...

I need to ask stata to count the number of observations that have at
least one 7..
Thanks!


G
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index