Hi,
I've a problem with the JUMP command. I have 3 different questionaries in size and need that epidata jumps from a identifcation variable to the next variables. The problem is that I need multiple jumps.
Something like that:
If code=0 then go to questions 1, 5, 8, 9 If code=1 then go to questions 1,2, 3,4, 5, 6, 7, 8, 9, 10 and so on..
Unfortunatly the jump command provides only the order for the next jump and not for that ones in the future.
Thanks in advance.
Greatings.
Benjamin Wecker
You can to put IF statements in the .chk file to do this, but they will have to go in each variable where there is a break in the chain: var1 if code = 0 then goto var 5 endif end var 5 if code = 0 then goto var8 endif end
Or you can hide certain variables (probably the better way) var 1 if code = 0 then hide var2 hide var3 hide var6 etc endif end
Jamie
Benjamin Wecker wrote:
Hi,
I've a problem with the JUMP command. I have 3 different questionaries in size and need that epidata jumps from a identifcation variable to the next variables. The problem is that I need multiple jumps.
Something like that:
If code=0 then go to questions 1, 5, 8, 9 If code=1 then go to questions 1,2, 3,4, 5, 6, 7, 8, 9, 10 and so on..
Hi Benjamin,
one possibility is to use if-command instead of jump (more flexible) and "hide" the variables you don't need.
code-variable After entry If code=0 hide qu2 hide qu3 ... qu2=8 (if you need a missing value) ... Endif End
Don't forget to unhide them (in a "before record" command or in a before entry command just before the "if"-command above).
Another is to do it with if-commands in every variable:
qu2 Before entry if (code=0) qu2=8 qu3=8 qu4=8 goto qu5 endif end
Greetings
Juergen
epidata-list@lists.umanitoba.ca schrieb:
Hi,
I've a problem with the JUMP command. I have 3 different questionaries in size and need that epidata jumps from a identifcation variable to the next variables. The problem is that I need multiple jumps.
Something like that:
If code=0 then go to questions 1, 5, 8, 9 If code=1 then go to questions 1,2, 3,4, 5, 6, 7, 8, 9, 10 and so on..
Unfortunatly the jump command provides only the order for the next jump and not for that ones in the future.
Thanks in advance.
Greatings.
Benjamin Wecker
EpiData-list mailing list EpiData-list@lists.umanitoba.ca http://lists.umanitoba.ca/mailman/listinfo/epidata-list
participants (1)
-
epidata-list@lists.umanitoba.ca