^egen^ [newvartype] newvarname ^= rmedf(^varlist^)^ [^if^ exp] [^in^ range > ]
^egen rmedf^ (via _grmedf.ado file) generates median (across the row, i.e. within the current observation) of varlist, missing values ignored. It essentially reshapes the data (and thus might require a lot of memory), unlike Nick J. Cox's @_grmed@ that constructs the median within the existing data file and requires much less memory. The latter however produces the resulting variable observation by observation and is thus rather slow.
Stanislav Kolenikov, skolenik@@recep.glasnet.ru
See also --------
Manual: ^[R] egen^ Online: help for @egen@; help for @_grmed@ if installed