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 at least one numeric variable.
Method
- Select the numeric variable in the Data Sources tree.
- Click + > Numeric Transformations > Square-Root. This creates a numeric variable.
-
If you select the newly created variable in the Data Sources tree and, from Properties
, click Data > Attributes > Code to see the R code used to create the transformation.
OPTIONAL: If a different power transformation is required, the user can modify the R code used to compute the transformation. See the instructions in the commented lines of code (in green).
- To check the data, select the original numeric and the square root variables in the Data Sources tree and go to Table
> Raw Data > Variable(s). This will tabulate the raw data for each respondent as seen above.
UPCOMING WEBINAR: From Chat to Agents: The New Phase of AI in Market Research