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: egen rowtotal

From   Nikolaos Pandis <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: egen rowtotal
Date   Sun, 15 Jul 2012 10:08:52 -0700 (PDT)

Hi to all
I am using the following command to get a row total for 16 variables:
egen sum = rowtotal(structured- reg_num )
the possible values per variable are 1, 2, 3 or 99  and I would like the row total by adding only the 1s, the 2s and the 3s and to excluded the 99s.
Any help would be appreciated.
Thank you,

*   For searches and help try:

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