Recode a variable in steps [dm25: STB-24] -------------------------- ^srecode^ newvar ^=^ exp [^if^ exp] [^in^ range] [^,^ ^ma^x^(^#^)^ ^mi^dpoint ^mi^n^(^#^)^ ^s^tep^(^#^)^ ] recodes the expression into uniform ranges, or "steps", and stores the recoding in ^newvar^. By default, the first step begins at the minimum value of the expression in the data, the last step includes the maximum value of the expression, and ^newvar^ contains the minimum value of each step. Options ------- ^max(^#^)^ specifies the maximum value of the expression to recode. Higher values are recoded as missing. By default, all values of the expression are recoded. ^mid^point specifies that ^newvar^ is to contain the midpoint of each step rather than the minimum value on the step. ^min(^#^)^ specifies the minimum value of the first step. Lower values of the expression are recoded as missing. By default, all values of the expression are recoded, and the minimum value of the first step is the minimum value of the expression. ^step(^#^)^ specifies the width of the steps. The default value is "1". Author ------ Sean Becketti, Stata Technical Bulletin FAX 914-533-2902 Also see -------- Manual: [2] function, [5d] recode STB: dm25 (STB-24) On-line: ^help^ for @functions@ and @recode@