Statalist The Stata Listserver

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

Re: st: egen rowmin rowmax

From   Philipp Rehm <[email protected]>
To   [email protected]
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


Teresa Dale Nelson wrote:

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,
* For searches and help try:

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index