# Reverse coding continuous variable

5 messages
Open this post in threaded view
|

## Reverse coding continuous variable

 This post has NOT been accepted by the mailing list yet. This post was updated on . Hi, How can I reverse code a continuous variable, ranging from 1 to 10? (it has many intermediate valuse, such as 1.257, 5.74 ect...) Thank you! Ruth.
Open this post in threaded view
|

## Re: Reverse coding continuous variable

 If you multiply by -1 it is in reversed order. Then if you want to rescale it to the same 1-10 range you would simply need to add 11, so -10 becomes 1, -1 becomes 10, etc. So the code: COMPUTE new = (-1*old) + 11. should do the trick. Andy W apwheele@gmail.com http://andrewpwheeler.wordpress.com/
Open this post in threaded view
|

## Re: Reverse coding continuous variable

 Thank you!So, would you agree that a different (and perhaps simpler) compute order would be:COMPUTE new= 11-old  Is it the same order as you suggested?Ruth. On Sat, Aug 5, 2017 at 4:13 PM, Andy W [via SPSSX Discussion] wrote: If you multiply by -1 it is in reversed order. Then if you want to rescale it to the same 1-10 range you would simply need to add 11, so -10 becomes 1, -1 becomes 10, etc. So the code: COMPUTE new = (-1*old) + 11. should do the trick. If you reply to this email, your message will be added to the discussion below: http://spssx-discussion.1045642.n5.nabble.com/Reverse-coding-continuous-variable-tp5734615p5734616.html To unsubscribe from Reverse coding continuous variable, click here. NAML -- Ruth Berkowitz, Ph.D. School of Social WorkUniversity of Haifa, Israel