Reverse coding continuous variable

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Reverse coding continuous variable

Ruth Berkowitz
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Reverse coding continuous variable

Andy W
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/
Loading...