I am entirely new to Syntax, and I'm trying to learn some basic functions.
I want to create a new dummy variable based on the conditions that two other existent dummies take value 1.
I have tried with the following code, but the result is a column of missing values.
COMPUTE ExtPrivFin = 0.
IF q12.3 = 1 AND q13.3 = 1 ExtPrivFin = 1. What is wrong with this?
For some reason, even if I only say COMPUTE ExtPrivFin = 1 it returns only missing values.
Thank you for your help!