|
Post by Dgraves on Sept 5, 2019 14:06:53 GMT
I have a survey with 6 sub-sections and I need to counterbalance the blocks. Each block includes a scenario with ratings of a word list, then a set of distracter questions, and then a recall test. I need the events in the block to stay in order, while the blocks are counterbalanced.
Design: Demo section (fixed); Block A, B, C, D (counterbalanced), Closing section (fixed).
Any ideas? Thanks
|
|
|
Post by PsyToolkit on Sept 6, 2019 8:49:17 GMT
Hi, below is an example (just with 3 blocks, but you can make it easily four, just change the code "random 1 3" to "random 1 4" and add the block information.
In the example below, all participants will have at the start a question about age and at the end a question about all the foods they like. In the middle, each participant is assigned at random to one of 3 possible blocks. A block has 2 questions. Just try it for yourself. Copy and paste the code into your survey editor, compile, and run.
Note that lines starting with "#" are comment lines. A line "j: final_questions" will always (unconditionally) jump to that label. This is used each time at the end of each block (the last one is actually unnecessary).
l: all_age t: textline q: How old are you? - Type your age
l: random_group t: set - random 1 3
l: t: jump - if $random_group == 1 then goto block1_question1 - if $random_group == 2 then goto block2_question1 - if $random_group == 3 then goto block3_question1
##### BLOCK 1 #################################
l: block1_question1 t: radio q: Do you like rice? - Yes - No - Do not know
l: block1_question2 t: radio q: Do you like ricemilk? - Yes - No - Do not know
j: final_questions
##### BLOCK 2 #################################
l: block2_question1 t: radio q: Do you like chololate? - Yes - No - Do not know
l: block2_question2 t: radio q: Do you like chocolate milk? - Yes - No - Do not know
j: final_questions
##### BLOCK 3 #################################
l: block3_question1 t: radio q: Do you like strawberries? - Yes - No - Do not know
l: block3_question2 t: radio q: Do you like strawberry cake? - Yes - No - Do not know
j: final_questions
##### one last question for all participants ######
l: final_questions t: check q: Which of the following things do you also like to eat? (select one or more) - Bread - Vegetables - Beans - Meat - Fish
|
|