I have to modify an existing jsPsych experiment to summarize reaction times over conditions.
I thought I could start by writing a simple function called within jsPsych.init() that I named extractingData(). I get this message in my console: "Uncaught TypeError: jsPsych.data.get is not a function"
Here is the line:
var myData = jsPsych.data.get().filter({trial_type: 'poldrack-single-stim'}).filterCustom(function(x){return x.trial_num > 0});
In the jsPsych official documentation they provided this example:
var data = jsPsych.data.get().filter({trial_type: 'image-keyboard-response'}).filterCustom(function(x){ return x.rt > 100; });
Any help would be greatly appreciated. Thanks in advance.