Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: question about the anycount option of egen

From   Ekaterina Hertog <>
To   "" <>
Subject   st: question about the anycount option of egen
Date   Sat, 20 Feb 2010 19:32:00 +0100

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,


*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index