Announcement

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

  • Rescaling the variable

    Hi all,

    I want to rescale a variable in stata which is in the range of -10 to +10 into a range of 1 to 10.

    Can you please tell me the code for doing this?

    Best Regards,










  • #2
    Code:
    gen newvar = 0.45*oldvar + 5.5

    Comment


    • #3
      Thanks a lot

      Comment

      Working...
      X