NDCLab / lab-devOps

NDCLab mgmt and operations
GNU Affero General Public License v3.0
0 stars 0 forks source link

preprocessing script specs: online flanker #139

Closed jessb0t closed 2 years ago

jessb0t commented 2 years ago
georgebuzzell commented 2 years ago

Steps involved:

  1. Load in raw csv file for a given participant
  2. Delete rows that are empty
  3. Of the remaining rows, these are trials. However, the first few rows, that are offset from the rest are practice trials and should be ignored
  4. Of the remaining experimental trials, create a selection vector to identify rows corresponding to congruent stimuli. Similarly, create an additional selection vector to identify rows corresponding to incongruent stimuli
  5. Using the congruent and incongruent selection vectors, pull out the RT and accuracy values, separately for congruent and incongruent trials.
  6. For the accuracy data, simply take the average across trials, seperately for congruent and incongruent. save these values
  7. For RT, you will similarly compute average RT, seperately for congruent and incongruent trials, but do this twice, once after log transforming (ln) and once using the raw rt values
  8. You should now have the following average values for this participant (one csv input per participant): congruent-mean-accuracy, incongruent-mean-accuracy, congruent-mean-rt, incongruent-mean-rt, congruent-mean-log-rt, incongruent-mean-log-rt. Using these values, you want to create a difference score for each pair of similar congruent/incongruent values by taking the incongruent value (e.g. incongruent-mean-accuracy) and subtracting the corresponding congruent value (e.g. congruent-mean-accuracy) and then naming this as "flanker-effect-measure" e.g. "flanker-effect-accuracy.
  9. you now have several mean scores, and several mean "flanker effect" scores for this participant. Store these in a data frame, with an additioanl column variable that is their id number, and repeat the process for the remaining participants, adding their mean and flanker effect scores to the same data frame

Feel free to ask me @georgebuzzell as well as @apoly1 further questions here!

georgebuzzell commented 2 years ago

@apoly1 The intial plan was for @F-said to write these scripts for the three ef tasks. However, you have now made considersble progress on the dccs. Please comment on the other comment re dccs. But, for flanker, do you think it would be helpful to have farukh do this? Or did you want to do it, and then get input/feedback from @F-said ?

apoly1 commented 2 years ago

@georgebuzzell I would be interested in getting flanker done, I don't think it should be too difficult since I was able to complete DCCS one. @F-said does it sound good to you?

F-said commented 2 years ago

@apoly1 Sounds good! Lmk if I can help!