v 2 d egenmmed. egen function to create a moving median. d Program by Kevin Crow, StataCorp . d d Create a new variable containing a #-period moving median. You d may specify the number of lead() or lag() periods the moving standard d deviation should be comprised of. f egenmmed/_gmmed.ado f egenmmed/egenmmed.hlp