
From  Kit Baum <baum@bc.edu> 
To  statalist@hsphsun2.harvard.edu 
Subject  st: Re: egen rowmin rowmax 
Date  Sun, 5 Nov 2006 07:05:07 0500 
As it turns out, egen [var] = rowsum([varlist]) is equivalent to egen [var] = total([varlist]). My solution turned out to be to replace all of the zeros in the seq* cells with missings, then execute egen byte minmath = rowmin(seq*) /*without the condition!*/ and add the following line of code: replace minmath = 0 if minmath==.
* * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/
© Copyright 1996–2017 StataCorp LLC  Terms of use  Privacy  Contact us  What's new  Site index 