Need help for experiment for display randomly narratives across participant
I need to construct an experiment with 12 short narratives, knowing that each narrative has 4 different ending, which means 48 stories. But each participant must read only 12 stories with one type of ending.
I would like to display randomly these 12 narratives with only one of their associate ending across participant and i don’t know how.
Comments
Dear oriane_g26,
If I understand you correctly, I would suggest to create 12 different trials and assign each trial a factor "ending", with 4 levels (http://docs.expyriment.org/expyriment.design.Trial.html#expyriment.design.Trial.set_factor). You can then create a corresponding between subject factor (http://docs.expyriment.org/expyriment.design.Experiment.html#expyriment.design.Experiment.add_bws_factor), and use
get_permuted_bws_factor_condition()(http://docs.expyriment.org/expyriment.design.Experiment.html#expyriment.design.Experiment.get_permuted_bws_factor_condition) to get the corresponding ending for each participant (assuming you want the same ending for all 12 narratives per participant). This balances the endings over participants.To then present the 12 trials randomly, just shuffle the block you put them in (http://docs.expyriment.org/expyriment.design.Block.html#expyriment.design.Block.shuffle_trials).
Something like this maybe (not tested!):
I hope this helps, let me know if you have any further questions.
this helps !Thank you very much !
i have one more question, for narratives can i import stories from a folder or do i write them directly on the script ?
maybe this could be efficient...
I just put them into my example directly in order to demonstrate the principle, but you can of course also read them from a text file.
Ok, thanks !
for the selection of the type of ending i need something like random.choice() because the number of each ending correspond to a specific condition (ending1 = condition1, ending 2= condition..) but across stories participant mustn't read only one type of condition.
I've try to change this by replace s = xpy.stimuli.TextBox(possible_endings[ending-1]) by s = xpy.stimuli.TextBox(random.choice(possible_endings)) but in data i don't have the correct index associate with the type of ending presented