Post by val on Jan 31, 2022 1:59:39 GMT
Hi there,
I have a question about randomising experiments within a survey (i.e., randomly allocating experiments/conditions to different participants).
Context
I've created 3 versions of a modified stroop experiment. Each is saved as its own experiment: emostroop_exp1, emostroop_exp2, emostroop_exp3. Each experiment differs from the other based on the order of trials. Just FYI, in case you'd like to know why I set it up this way, please check out my previous post entitled "restrictions/conditions for randomising trials?"
Coding
I embedded the 3 experiments into a survey by following instructions on this psytoolkit page: www.psytoolkit.org/doc2.0.9/online-survey-syntax.html#randomjump. Scroll to the bottom of the page where it says "example of counterbalancing experiments". Please see code at the bottom of the post. I was able to compile it successfully.
Problem
I assumed that this code would allow me to randomly allocate participants to 1 of the 3 experiments, depending on which random number is chosen (1, 2 or 3). However, upon multiple times of running this survey (over 10x) and inspecting the data files it generates, I notice that only 2 of the 3 experiments show up for me (i.e., emostroop_exp1 and emostroop_exp2, but not emostroop_exp3).
This is the case even when I fill out the section "optional competion criteria" (psytoolkit instructions here):
Question
Why is this the case? Does psytoolkit only allow random allocation of participants to a maximum of 2 experiments? Thank you.
--
My code
l: ID
t: textline
q: Please enter your Participant ID, as provided by the researchers.
- {Required}
l: intro_task
t: info
q: The task will begin on the next page. Instructions will be provided for you. Please click the button below to continue, then follow the prompts to work through the task. The task will take approximately 15 minutes to complete. <br>
l: choose_a_number
t: set
- random 1 3
l: decide_what_people_get
t: jump
- if $choose_a_number = 1 then goto Group1
- if $choose_a_number = 2 then goto Group2
- if $choose_a_number = 2 then goto Group3
l: Group1
t: experiment
- emostroop_exp1
l: Group2
t: experiment
- emostroop_exp2
l: Group3
t: experiment
- emostroop_exp3
I have a question about randomising experiments within a survey (i.e., randomly allocating experiments/conditions to different participants).
Context
I've created 3 versions of a modified stroop experiment. Each is saved as its own experiment: emostroop_exp1, emostroop_exp2, emostroop_exp3. Each experiment differs from the other based on the order of trials. Just FYI, in case you'd like to know why I set it up this way, please check out my previous post entitled "restrictions/conditions for randomising trials?"
Coding
I embedded the 3 experiments into a survey by following instructions on this psytoolkit page: www.psytoolkit.org/doc2.0.9/online-survey-syntax.html#randomjump. Scroll to the bottom of the page where it says "example of counterbalancing experiments". Please see code at the bottom of the post. I was able to compile it successfully.
Problem
I assumed that this code would allow me to randomly allocate participants to 1 of the 3 experiments, depending on which random number is chosen (1, 2 or 3). However, upon multiple times of running this survey (over 10x) and inspecting the data files it generates, I notice that only 2 of the 3 experiments show up for me (i.e., emostroop_exp1 and emostroop_exp2, but not emostroop_exp3).
This is the case even when I fill out the section "optional competion criteria" (psytoolkit instructions here):
- Stop when more than n participants completed the survey: 3
- Counterbalance participants: 1 1 1
- Only emostroop_exp1 and emostroop_exp2 show up
Question
Why is this the case? Does psytoolkit only allow random allocation of participants to a maximum of 2 experiments? Thank you.
--
My code
l: ID
t: textline
q: Please enter your Participant ID, as provided by the researchers.
- {Required}
l: intro_task
t: info
q: The task will begin on the next page. Instructions will be provided for you. Please click the button below to continue, then follow the prompts to work through the task. The task will take approximately 15 minutes to complete. <br>
l: choose_a_number
t: set
- random 1 3
l: decide_what_people_get
t: jump
- if $choose_a_number = 1 then goto Group1
- if $choose_a_number = 2 then goto Group2
- if $choose_a_number = 2 then goto Group3
l: Group1
t: experiment
- emostroop_exp1
l: Group2
t: experiment
- emostroop_exp2
l: Group3
t: experiment
- emostroop_exp3