Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Script/ package to reverse score 0-100 variable

    Hi there,

    I have a variable with values ranging from 0 to 100 (whole numbers). I want to reverse score these values (so, 100 becomes 0, 99 becomes 1, 98 becomes 2 etc.). I'm only familiar with the recode command - is there a less arduous way to do that?

    Thank you!!
    Isabel

  • #2
    Yes, there is.

    Code:
    generate newvar = 100 - oldvar

    Comment


    • #3
      Haha, I should have thought of that. My tired brain couldn't figure it out. Thanks!

      Comment

      Working...
      X