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 rowmin but not value but variable name

From   "Trelle Sven" <>
To   <>
Subject   st: egen rowmin but not value but variable name
Date   Mon, 13 Aug 2012 12:32:39 +0200

Dear all,
it might sound trivial but I was not able to find something in the egen
or extended macro function help:

I want to create a new variable that contains the variable name that
holds the minimum value over several other variables per row i.e.
something like the "egen x= rowmin(y z w)" command but the created
variable should not contain the row minimum but the variable name that
contains this minimum.

I hope the description is clear and somebody can help!

Thanks in advance


*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index