Hi everyone!
I am working on a research project to measure the working memory capacity of my participants. I am using the word span test in which word strings are presented, and the participants have to memorize and recall them. I have all the words for the test ready in a CSV file. However, I am not sure how I can randomly draw a specific number of words from that CSV file. Here are some details of my test.
I am trying to randomly draw a specific number of words each time for each word list length. For example, in a 2-word list length, I want to randomly draw 2 words from the CSV file to complete a trial, and 3 trials constitute a set. Here is an example:
2-word list length
Trial 1:
Word 1: Apple
Word 2: orange
Trial 2:
Word 1: banana
Word 2: pear
Trial 3:
Word 1: blueberry
Word 2: raspberry
This structure will continue until it reaches the 7-word list length. Each word, once drawn, cannot be drawn again in any subsequent trials. Each word will be presented one second and disappear after each presentation. After all the words in a given trial have been presented, a question mark will appear, which prompts the participants to record their recalls. There is no time limit for the audio recall. Then, a continue button will be pressed for the next trial.
Here is a demonstration link to my project: https://farm.pcibex.net/r/LtvRoK/
I am not sure how I should write the script for this purpose. Would anyone mind to give some suggestions on this?
Thank you so much in advance!
Ethan