I have constructed a social capital index using PCA technique. This index comprises values both positive and negative. I want to transform / convert this index to 0-100 scale to make it easy to interpret. Please suggest me an easiest way to do so.
Tell me more
×
Cross Validated is a question and answer site for
statisticians, data analysts, data miners and data visualization experts. It's 100% free, no registration required.
|
|
Any variable (univariate distribution) v with observed min and max values (or these could be preset potential bounds for values) can be rescaled to range min' to max' by formula (max'-min')/(max-min)(v-max)+max' or (max'-min')/(max-min)(v-min)+min'. |
|||
|
|
|
Just to add to ttnphnss's answer, to implement this process in Python (for example), this function will do the trick:
|
|||||||
|
|
first, lets get some example data:
Here are two functions that will work in R
Or, you could use other transformations. For example, the logit transform was mentioned by @ondrej
or, other transforms:
|
|||
|
|