Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Nikolaos Pandis <npandis@yahoo.com> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
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, Nick * * 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/