Statalist


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

st: "too many elements in numlist": -egen anycount(), values(numlist)-


From   Mandy fu <[email protected]>
To   [email protected]
Subject   st: "too many elements in numlist": -egen anycount(), values(numlist)-
Date   Wed, 12 Aug 2009 15:53:46 -0400

Dear Statalisters,

When I use the following command to count how many variables in the
varlist is greater than 9700 and less than 200710, I got an error
message that says the numlist has too many elements:

------------------------------
. egen  newvar=anycount(varlist), values(9700/200710)

----values() invalid -- invalid numlist has too many elements
r(123);
--------------------------
I was wondering if there's any alternative way to get the total numebr
of variables in the  varlist whose values are in a large range such as
 (9700,200710).

Thanks for your help in advance!

Best,
Mandy
*
*   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