Let's say I have the following example, with no mandatory questions:
I want to calculate "time_end" and variable's name for "time_end" ("x1") - blue cells.
It would be something like this:
time_end = time of last answered/seen question
x1 = last answered/seen question
All variables AFTER "x1" should then be equal to missing (no answer) and not to "zero".
One of the references to detect these situation, could be that the "time_var" is empty, so no more answers from that point onward, no? But how?
For the ones who answer everything, it's not a problem (see ID=5).
But when I have "drop outs" (quit in middle of questionnaire, do not finish it), I have a syntax where I wrote every variable, by hand, for each one of these ID cases, including naming all variables to be placed missing after a "drop out" (more that 50...).
Is there a way to automatize this with syntax? Thanks!
