Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: egen rowmin rowmax


From   Philipp Rehm <Philipp.Rehm@gmx.de>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: egen rowmin rowmax
Date   Sat, 04 Nov 2006 09:18:08 +0100

Can you give an example? Is there an error-code? (For example, Are you sure you don't include, say, a string variable in the varlist?)

The following seems to work:

sysuse auto, clear
egen min=rowmin(price weight turn)
egen max=rowmax(price weight turn)

list price weight turn min max

HTH,
Philipp

Teresa Dale Nelson wrote:

Hello,
Does anyone know why egen's rowmax command would work but its rowmin would not? My data have cases that should suffice in either case.
Thank you,
Terri
*
* 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/


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index