This article describes how to transform the data for each selected variable set and create a new variable set that contains the transformed data after scaling the values for each case so that the data values all lie between 0 and 1. Consider the data below:
For each row in the data, the QScript will subtract the minimum of the row from each entry and then divide by the range (the maximum value minus the minimum value) or the row to yield the following:
Requirements
- A Displayr document that contains one or more Nominal - Multi, Ordinal - Multi, Numeric - Multi, Numeric - Grid, Nominal, Ordinal or Numeric variable sets.
Method
To use this transformation:
- Select one or more variable sets in the Data Sources tree.
- Hover and click Plus (+) > Numeric Transformations > Scale > Unit Interval Within Case.
- A new variable set is created just below the original.