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

st: Re: -recode- question


From   Friedrich Huebler <[email protected]>
To   [email protected]
Subject   st: Re: -recode- question
Date   Wed, 3 Dec 2003 10:40:10 -0800 (PST)

--- Friedrich Huebler <[email protected]> wrote:
> 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.

My question was about the interpretation of overlaps in a -recode-
command. I thought this was not documented but I was wrong. Overlaps
are explained under the heading "Test for mistakes in rules" in the
entry for -recode- in the Stata 8 Reference Manual.

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