Announcement

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

  • Rescaling variables

    Hi,

    I have a variable that's from 0.232 to 0.570 and I want to rescale it to be from 0 to 1, how can I do this please?

    Many thanks

  • #2
    the trick is to get the multiplier which is equal to
    Code:
    1/(.57-.232)
    which makes the formula
    Code:
    gen newvar=(oldvar - .232)*(1/(.57-.232))

    Comment

    Working...
    X