Restriction of Variable

Discussions about CSEntry
Post Reply
MrTaco
Posts: 128
Joined: November 18th, 2014, 1:55 am

Restriction of Variable

Post 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...
Attachments
vs2.png
vs2.png (24.73 KiB) Viewed 3880 times
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Restriction of Variable

Post 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
Laedry
Posts: 5
Joined: October 12th, 2016, 5:43 am

Re: Restriction of Variable

Post 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...
Post Reply