Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: -recode- question


From   Friedrich Huebler <[email protected]>
To   [email protected]
Subject   st: -recode- question
Date   Tue, 2 Dec 2003 18:33:16 -0800 (PST)

This question was inspired by Veit Grote's recent post. The command

. recode varname min/3=1 3/6=2 6/9=3

recodes all values <=3 to 1, and all values >3 and <=6 to 2. How does
a Stata user learn this "read from left to right" rule? I could not
find this documented anywhere.

Friedrich Huebler

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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