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:
Requirements
- A Displayr document containing numeric data.
Please note these steps require a Displayr license.
Method
- Select the numeric variable in the Data Sources tree that you would like to compute the case-level shares.
- Either hover over any variable in your Data Sources tree > Plus (+) > Insert Variable(s) > Ready-Made New Variable(s) > Log Transform Variable(s) or else from the toolbar menu, select Anything > Data > Variables > New > 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 Data > R CODE, similar to below:
Next
How to Create Square-Root Variable(s)