Log transformation is a data transformation method that replaces each variable x with a log(x). This article describes how to apply the log transformation to numeric variable sets, for example:
- A Displayr document containing numeric data.
- Select the numeric variable in the Data Sets tree that you would like to compute the case-level shares.
- In the Data Sets tree, click the + where you want to insert the new variable set, and then select Ready-Made New Variable(s) > Log Transform Variable(s). This will create a new numeric variable that is the log(x) using R.
- The code that has been used can be found in the object inspector under Properties > R CODE, similar to below: