Transform
Creates a new variable that is a transformed version of the parent variable. Select a numeric variable and click one of the transformation buttons to create the new variable. The new variable is added to the dataset with a descriptive name (e.g., log.10.height, height.squared).
Go to Variables > Numeric Variables > Transform.
Available Transformations
| Transformation | New variable name | Description |
|---|---|---|
| Log (base 10) | log.10.X | Common logarithm |
| Exponential (e^x) | exp.X | Exponential function |
| Square (X²) | X.squared | Square of each value |
| Square root | root.X | Square root of each value |
| Reciprocal (1/X) | recip.X | Reciprocal (inverse) of each value |
Drag and drop
You can drag a variable name from the data viewer directly onto a transformation button to apply it instantly.
note
Only numeric variables can be transformed. The original variable is kept and a new transformed variable is added to the dataset.