This article describes how to create a new variable(s) by applying the square root transformation to the selected variable(s).
Requirements
- Data loaded into a Displayr document must contain Numeric variables.
Please note these steps require a Displayr license.
Method
- Select the variable in the Data Sources tree.
- Either hover over any variable in your Data Sources tree > Plus (+) > Insert Variable(s) > Ready-Made New Variable(s) > Square-Root Variable(s) or else from the toolbar menu, select Anything > Data > Variables > New > Ready-Made New Variable(s) > Square-Root Variable(s). This creates a numeric R variable.
- If you select the newly created variable in the Data Sources tree and under Data > R CODE you will see the R code used to create the transformation.
- To check the data, select both variables in the Data Sources tree and go to Anything > Table > Raw Data > Variable(s). This will tabulate the raw data for each respondent as seen above.
- OPTIONAL: If a different power transformation is required, the user can modify the R code used to compute the transformation.
Next
How to Create Log Transform Variable(s)