Hi,
I am not completely sure, and it also depends on how you have exported your ODK data. I think ODK stores multiple choice variables in csv files in a text string where each value is separated from the next with a space. If that is so, then you can pick out the first answer by extracting its value using the char.substr function and convert it to a number. That is char.subsrt(method,1,1) will pick out the first, char.substr(method,3,1) will pick out the second and so on. You also need to convert to a number, and then check what answer it is. Thus, compute value1=number(char.substr(method,1,1),F2.0).
And so on. A more general method is obviously creating a loop and search for the spaces.
I probably have a macro around somewhere designed for CSPro output that more or less does the conversion.
Note that you can either use multiple dichotomies or multiple categories in multiple response sets in SPSS.
hth
------------------------------
Jon
------------------------------
Original Message:
Sent: Mon April 05, 2021 02:59 PM
From: Rick Marcantonio
Subject: Split observations / variables
Perhaps use RECODE:
RECODE Method_contr (1=1) (MISSING,SYSMIS=SYSMIS) (ELSE=0) into Condom_Pill.
RECODE Method_contr (2=1) (MISSING,SYSMIS=SYSMIS) (ELSE=0) into IUD.
RECODE Method_contr (3=1) (MISSING,SYSMIS=SYSMIS) (ELSE=0) into Implant_Other.
... etc.
EXECUTE.
------------------------------
Rick Marcantonio
Quality Assurance
IBM
------------------------------