Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

st: egen rowtotal

From   Nikolaos Pandis <>
To   "" <>
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–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index