Skip To Content

Changing variables stored as True or False to traditional binary form

If you are using a variable with values stored as True/False, but instead require it to be populated as a traditional binary value of 1/0, you can create a new variable using the Transform option on the top right of the Predict interface.

Transform in Predict

In the Transform, select the True/False variable from the Input Columns so that it is assigned as variable [A] in the Assign Variables pane. Change the Result Type to “Binary”, and in the formula section enter [A] = ‘True’. Predict will identify every instance of “True” as 1, and every non-instance of ‘True’ to 0.

Binary transform in Predict

Back to Knowledge Base