Page 1 of 1

Restriction of Variable

Posted: December 8th, 2016, 8:30 am
by MrTaco
Good day

I want to restrict questions in 5 different variables..

am avoiding to do multiple response coz on SPSS they can't analyse it.


please refer to the attachment.

Thanks in advance...

Re: Restriction of Variable

Posted: December 8th, 2016, 9:18 am
by josh
So you want to remove that option from the value set if it was chosen in a previous response? If I understand correctly for Q43_1 you want to have all 8 options in the value set, then in Q43_2 you want to remove the option picked in Q43_2 and have only 7 options and then in Q43_3 you want to remove what was picked in Q43_1 and Q43_2 so that you have 6 options etc...

You can do this using setvalueset although the logic is quite complex. You can see an example here http://teleyah.com/cspro/DCJune2015/05- ... urvey5.zip Look at question G3, crop ranking.

Personally I think that the programming required to do this is far more complicated than just using a checkbox and converting the checkbox to a series of yes/no questions for analysis in SPSS. You can see an example of that in the CROPS_PRODUCED_CHECKBOX and CROPS_PRODUCED_REPEATING fields in the above app. An explanation of the code can be found here: http://teleyah.com/cspro/DCJune2015/04-CAPI/04-CAPI.pdf Look under "Converting Checkboxes to yes/no". You can also do the same in a batch application post data entry. See an example here: http://teleyah.com/cspro/SouthAfricaOct ... pter10.zip

Re: Restriction of Variable

Posted: March 10th, 2017, 7:00 am
by Laedry
josh wrote:So you want to remove that option from the value set if it was chosen in a previous response? If I understand correctly for Q43_1 you want to have all 8 options in the value set, then in Q43_2 you want to remove the option picked in Q43_2 and have only 7 options and then in Q43_3 you want to remove what was picked in Q43_1 and Q43_2 so that you have 6 options etc...

You can do this using setvalueset although the logic is quite complex. You can see an example here http://teleyah.com/cspro/DCJune2015/05- ... urvey5.zip Look at question G3, crop ranking.

Personally I think that the programming required to do this is far more complicated than just using a checkbox and converting the checkbox to a series of yes/no questions for analysis in SPSS. You can see an example of that in the CROPS_PRODUCED_CHECKBOX and CROPS_PRODUCED_REPEATING fields in the above app. An explanation of the code can be found here: http://teleyah.com/cspro/DCJune2015/04-CAPI/04-CAPI.pdf Look under "Converting Checkboxes to yes/no". You can also do the same in a batch application post data entry. See an example here: http://teleyah.com/cspro/SouthAfricaOct ... pter10.zip
Mr Josh, Your example is clear

But My variable is out of rooster, how can i filtered it...