By MinghuiNi - 1/20/2020
Hi I am having problem coding the inquisit experiment and would love to get your help! In my experiment, I plan to have participants read some information. They will then be asked some checkbox questions and some radio button questions. They will be able to proceed only if they answer all the questions correctly. If any of the questions are incorrect, they will have to read the information again. For the checkbox questions, they have to select both correct boxes out of the four choices correctly to be considered correct for this question. Could you please give me some suggestions about how to make this possible? I guess I am mainly having a problem about how to check if the checkbox responses are correct. Here is what I have right now. Thank you.
<survey manipulation_check> /pages = [1=manipulation_check_instruction1; 2=manipulation_check_instruction2] / responsefontstyle = ("Verdana", -12, false, false, false, false, 5, 0) / itemfontstyle = ("Verdana", -13, false, false, false, false, 5, 0) / itemspacing = 2% / showpagenumbers = false / branch = [if ( ) block.informationrepeated] / branch = [if ( ) block.informationrepeated] / branch = [if (radiobuttons.sexual_couple2.response != "No") block.informationrepeated] / branch = [if (radiobuttons.sexual_couple2.response != "Yes") block.informationrepeated] </survey>
<surveypage manipulation_check_instruction1> / caption = "Please answer the following questions based on the information you have received." / fontstyle = ("Verdana", -16, true, false, false, false, 5, 0) / questions = [1-2= noreplace(sexual_couple1,control_couple1)] </surveypage>
<checkboxes sexual_couple1> / caption = "Who have had more than 13 sexual partners in previous relationships? (Please check all that apply.) " / options = ("Steve", "John", "Lisa", "Mary") / optionvalues = ("1","0","1","0") / range = (2,2) / order = random </checkboxes>
<checkboxes control_couple1> / caption = "Who are open to trying different cuisines? (Please check all that apply.)" / options = ("Steve", "John", "Lisa", "Mary") / optionvalues = ("0","1","0","1") / range = (2,2) / order = random </checkboxes>
<surveypage manipulation_check_instruction2> / caption = "Please answer the following questions based on the information you have received." / fontstyle = ("Verdana", -16, true, false, false, false, 5, 0) / questions = [1-2= noreplace(sexual_couple2,control_couple2)]] </surveypage>
<radiobuttons sexual_couple2> / caption = "Are Steve and Lisa in a committed relationship?" / options = ("Yes"; "No") / correctresponse = ("No") </radiobuttons>
<radiobuttons control_couple2> / caption = "Are John and Mary in a committed relationship?" / options = ("Yes"; "No") / correctresponse = ("Yes") </radiobuttons>
|
By Dave - 1/20/2020
+xHi I am having problem coding the inquisit experiment and would love to get your help! In my experiment, I plan to have participants read some information. They will then be asked some checkbox questions and some radio button questions. They will be able to proceed only if they answer all the questions correctly. If any of the questions are incorrect, they will have to read the information again. For the checkbox questions, they have to select both correct boxes out of the four choices correctly to be considered correct for this question. Could you please give me some suggestions about how to make this possible? I guess I am mainly having a problem about how to check if the checkbox responses are correct. Here is what I have right now. Thank you. <survey manipulation_check> /pages = [1=manipulation_check_instruction1; 2=manipulation_check_instruction2] / responsefontstyle = ("Verdana", -12, false, false, false, false, 5, 0) / itemfontstyle = ("Verdana", -13, false, false, false, false, 5, 0) / itemspacing = 2% / showpagenumbers = false / branch = [if ( ) block.informationrepeated] / branch = [if ( ) block.informationrepeated]/ branch = [if (radiobuttons.sexual_couple2.response != "No") block.informationrepeated] / branch = [if (radiobuttons.sexual_couple2.response != "Yes") block.informationrepeated] </survey> <surveypage manipulation_check_instruction1> / caption = "Please answer the following questions based on the information you have received." / fontstyle = ("Verdana", -16, true, false, false, false, 5, 0) / questions = [1-2= noreplace(sexual_couple1,control_couple1)] </surveypage> <checkboxes sexual_couple1> / caption = "Who have had more than 13 sexual partners in previous relationships? (Please check all that apply.) " / options = ("Steve", "John", "Lisa", "Mary") / optionvalues = ("1","0","1","0") / range = (2,2) / order = random </checkboxes> <checkboxes control_couple1> / caption = "Who are open to trying different cuisines? (Please check all that apply.)" / options = ("Steve", "John", "Lisa", "Mary") / optionvalues = ("0","1","0","1") / range = (2,2) / order = random </checkboxes> <surveypage manipulation_check_instruction2> / caption = "Please answer the following questions based on the information you have received." / fontstyle = ("Verdana", -16, true, false, false, false, 5, 0) / questions = [1-2= noreplace(sexual_couple2,control_couple2)]] </surveypage> <radiobuttons sexual_couple2> / caption = "Are Steve and Lisa in a committed relationship?" / options = ("Yes"; "No") / correctresponse = ("No") </radiobuttons> <radiobuttons control_couple2> / caption = "Are John and Mary in a committed relationship?" / options = ("Yes"; "No") / correctresponse = ("Yes") </radiobuttons> The following should do the trick:
<expt> / blocks = [1=manipulation_check] </expt>
<survey manipulation_check> /pages = [1=manipulation_check_instruction1; 2=manipulation_check_instruction2] / responsefontstyle = ("Verdana", -12, false, false, false, false, 5, 0) / itemfontstyle = ("Verdana", -13, false, false, false, false, 5, 0) / itemspacing = 2% / showpagenumbers = false / branch = [if (checkboxes.control_couple1.response != "1 & 1") block.informationrepeated] / branch = [if (checkboxes.sexual_couple1.response != "1 & 1") block.informationrepeated] / branch = [if (radiobuttons.sexual_couple2.response != "No") block.informationrepeated] / branch = [if (radiobuttons.control_couple2.response != "Yes") block.informationrepeated] </survey>
<surveypage manipulation_check_instruction1> / caption = "Please answer the following questions based on the information you have received." / fontstyle = ("Verdana", -16, true, false, false, false, 5, 0) / questions = [1-2= noreplace(sexual_couple1,control_couple1)] </surveypage>
<checkboxes sexual_couple1> / caption = "Who have had more than 13 sexual partners in previous relationships? (Please check all that apply.) " / options = ("Steve", "John", "Lisa", "Mary") / optionvalues = ("1","0","1","0") / range = (2,2) / order = random </checkboxes>
<checkboxes control_couple1> / caption = "Who are open to trying different cuisines? (Please check all that apply.)" / options = ("Steve", "John", "Lisa", "Mary") / optionvalues = ("0","1","0","1") / range = (2,2) / order = random </checkboxes>
<surveypage manipulation_check_instruction2> / caption = "Please answer the following questions based on the information you have received." / fontstyle = ("Verdana", -16, true, false, false, false, 5, 0) / questions = [1-2= noreplace(sexual_couple2,control_couple2)]] </surveypage>
<radiobuttons sexual_couple2> / caption = "Are Steve and Lisa in a committed relationship?" / options = ("Yes", "No") / validresponse = ("Yes", "No") / correctresponse = ("No") </radiobuttons>
<radiobuttons control_couple2> / caption = "Are John and Mary in a committed relationship?" / options = ("Yes"; "No") / validresponse = ("Yes", "No") / correctresponse = ("Yes") </radiobuttons>
<block informationrepeated> / trials = [1=mytrial] </block>
<trial mytrial> / stimulusframes = [1=mistake] / validresponse = (57) </trial>
<text mistake> / items = ("you're seeing this because you've made a mistake") </text>
|
By Dave - 1/20/2020
+x+xHi I am having problem coding the inquisit experiment and would love to get your help! In my experiment, I plan to have participants read some information. They will then be asked some checkbox questions and some radio button questions. They will be able to proceed only if they answer all the questions correctly. If any of the questions are incorrect, they will have to read the information again. For the checkbox questions, they have to select both correct boxes out of the four choices correctly to be considered correct for this question. Could you please give me some suggestions about how to make this possible? I guess I am mainly having a problem about how to check if the checkbox responses are correct. Here is what I have right now. Thank you. <survey manipulation_check> /pages = [1=manipulation_check_instruction1; 2=manipulation_check_instruction2] / responsefontstyle = ("Verdana", -12, false, false, false, false, 5, 0) / itemfontstyle = ("Verdana", -13, false, false, false, false, 5, 0) / itemspacing = 2% / showpagenumbers = false / branch = [if ( ) block.informationrepeated] / branch = [if ( ) block.informationrepeated]/ branch = [if (radiobuttons.sexual_couple2.response != "No") block.informationrepeated] / branch = [if (radiobuttons.sexual_couple2.response != "Yes") block.informationrepeated] </survey> <surveypage manipulation_check_instruction1> / caption = "Please answer the following questions based on the information you have received." / fontstyle = ("Verdana", -16, true, false, false, false, 5, 0) / questions = [1-2= noreplace(sexual_couple1,control_couple1)] </surveypage> <checkboxes sexual_couple1> / caption = "Who have had more than 13 sexual partners in previous relationships? (Please check all that apply.) " / options = ("Steve", "John", "Lisa", "Mary") / optionvalues = ("1","0","1","0") / range = (2,2) / order = random </checkboxes> <checkboxes control_couple1> / caption = "Who are open to trying different cuisines? (Please check all that apply.)" / options = ("Steve", "John", "Lisa", "Mary") / optionvalues = ("0","1","0","1") / range = (2,2) / order = random </checkboxes> <surveypage manipulation_check_instruction2> / caption = "Please answer the following questions based on the information you have received." / fontstyle = ("Verdana", -16, true, false, false, false, 5, 0) / questions = [1-2= noreplace(sexual_couple2,control_couple2)]] </surveypage> <radiobuttons sexual_couple2> / caption = "Are Steve and Lisa in a committed relationship?" / options = ("Yes"; "No") / correctresponse = ("No") </radiobuttons> <radiobuttons control_couple2> / caption = "Are John and Mary in a committed relationship?" / options = ("Yes"; "No") / correctresponse = ("Yes") </radiobuttons> The following should do the trick: <expt> / blocks = [1=manipulation_check] </expt> <survey manipulation_check> /pages = [1=manipulation_check_instruction1; 2=manipulation_check_instruction2] / responsefontstyle = ("Verdana", -12, false, false, false, false, 5, 0) / itemfontstyle = ("Verdana", -13, false, false, false, false, 5, 0) / itemspacing = 2% / showpagenumbers = false / branch = [if (checkboxes.control_couple1.response != "1 & 1") block.informationrepeated] / branch = [if (checkboxes.sexual_couple1.response != "1 & 1") block.informationrepeated]/ branch = [if (radiobuttons.sexual_couple2.response != "No") block.informationrepeated] / branch = [if (radiobuttons.control_couple2.response != "Yes") block.informationrepeated] </survey> <surveypage manipulation_check_instruction1> / caption = "Please answer the following questions based on the information you have received." / fontstyle = ("Verdana", -16, true, false, false, false, 5, 0) / questions = [1-2= noreplace(sexual_couple1,control_couple1)] </surveypage> <checkboxes sexual_couple1> / caption = "Who have had more than 13 sexual partners in previous relationships? (Please check all that apply.) " / options = ("Steve", "John", "Lisa", "Mary") / optionvalues = ("1","0","1","0") / range = (2,2) / order = random </checkboxes> <checkboxes control_couple1> / caption = "Who are open to trying different cuisines? (Please check all that apply.)" / options = ("Steve", "John", "Lisa", "Mary") / optionvalues = ("0","1","0","1") / range = (2,2) / order = random </checkboxes> <surveypage manipulation_check_instruction2> / caption = "Please answer the following questions based on the information you have received." / fontstyle = ("Verdana", -16, true, false, false, false, 5, 0) / questions = [1-2= noreplace(sexual_couple2,control_couple2)]] </surveypage> <radiobuttons sexual_couple2> / caption = "Are Steve and Lisa in a committed relationship?" / options = ("Yes", "No") / validresponse = ("Yes", "No") / correctresponse = ("No") </radiobuttons> <radiobuttons control_couple2> / caption = "Are John and Mary in a committed relationship?" / options = ("Yes"; "No") / validresponse = ("Yes", "No") / correctresponse = ("Yes") </radiobuttons> <block informationrepeated> / trials = [1=mytrial] </block> <trial mytrial> / stimulusframes = [1=mistake] / validresponse = (57) </trial> <text mistake> / items = ("you're seeing this because you've made a mistake") </text> NB: I've corrected a few other minor mistakes, so make sure to not only copy the two /branch attributes involving the checkboxes elements. The mistakes in your original were:
#1:
<survey manipulation_check> /pages = [1=manipulation_check_instruction1; 2=manipulation_check_instruction2] / responsefontstyle = ("Verdana", -12, false, false, false, false, 5, 0) / itemfontstyle = ("Verdana", -13, false, false, false, false, 5, 0) / itemspacing = 2% / showpagenumbers = false / branch = [if ( ) block.informationrepeated] / branch = [if ( ) block.informationrepeated] / branch = [if (radiobuttons.sexual_couple2.response != "No") block.informationrepeated] / branch = [if (radiobuttons.sexual_couple2.response != "Yes") block.informationrepeated] </survey>
ought to be
<survey manipulation_check> /pages = [1=manipulation_check_instruction1; 2=manipulation_check_instruction2] / responsefontstyle = ("Verdana", -12, false, false, false, false, 5, 0) / itemfontstyle = ("Verdana", -13, false, false, false, false, 5, 0) / itemspacing = 2% / showpagenumbers = false / branch = [if ( ) block.informationrepeated] / branch = [if ( ) block.informationrepeated] / branch = [if (radiobuttons.sexual_couple2.response != "No") block.informationrepeated] / branch = [if (radiobuttons.control_couple2.response != "Yes") block.informationrepeated] </survey>
and
#2: If you're specifying /correctresponse in <radiobuttons> elements, you also need to specify /validresponse for them to work properly:
<radiobuttons sexual_couple2> / caption = "Are Steve and Lisa in a committed relationship?" / options = ("Yes", "No") / validresponse = ("Yes", "No") / correctresponse = ("No") </radiobuttons>
<radiobuttons control_couple2> / caption = "Are John and Mary in a committed relationship?" / options = ("Yes", "No") / validresponse = ("Yes", "No") / correctresponse = ("Yes") </radiobuttons>
|
By MinghuiNi - 1/20/2020
Thank you so much!
|
|