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.
Method
- Select the variable in the Data Sources tree.
- Click + > Numeric Transformations > Square-Root. This creates a numeric R variable.
- If you select the newly created variable in the Data Sources tree and under Data > R Code > Edit 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.