Statalist


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

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


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: "too many elements in numlist": -egen anycount(), values(numlist)-
Date   Wed, 12 Aug 2009 22:59:09 +0200

<>


Mandy may also benefit from Nick`s own
http://www.stata-journal.com/article.html?article=dm0026


HTH
Martin


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Mandy fu
Sent: Mittwoch, 12. August 2009 21:54
To: statalist@hsphsun2.harvard.edu
Subject: st: "too many elements in numlist": -egen anycount(),
values(numlist)-

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/


*
*   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