Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: RE: question about the anycount option of egen
From
Ekaterina Hertog <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: RE: question about the anycount option of egen
Date
Sun, 21 Feb 2010 10:42:50 +0100
Thank you for the confirmation, Martin,
warm regards,
Ekaterina
Martin Weiss wrote:
<>
-egen, anycount()- takes a -varlist- as its argument where you can pretty
much add stuff but not subtract. You can run the command a second time,
though, and subtract the results.
HTH
Martin
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Ekaterina Hertog
Sent: Samstag, 20. Februar 2010 19:32
To: [email protected]
Subject: st: question about the anycount option of egen
Dear all,
I need to generate a variable which equals a number of times variables
in my dataset the name of which starts from nodes equal 1.
I did it in the following way:
egen nodes = anycount(nodes*), v(1)
however now I realise that I want to include a count of all variables
the name of which start from nodes, but one. I looked at the help file
and it seems I cannot exclude 1 variable in the anycount option of egen
and will have to do it in a more roundabout way. I just wanted to
confirm if that is the case?
I will be most grateful for any advice,
Warm regards,
Ekaterina
*
* 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/
*
* 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/