Skip to content
Discussion options

You must be logged in to vote

Once you access the data with jsPsych.data.get() there are a variety of operations that can be used for filtering, extracting, summarizing, etc.

This is how you filter. Note that key_press: 65 because the key code for a is 65.

var filtered_data = jsPsych.data.get().filter({key_press: 65, effort_level: 75})

Then you can extract reward_offered as an array (assuming that it is in the data for that trial):

var array = filtered_data.select('reward_offered').values;

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@viviers
Comment options

Answer selected by jodeleeuw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants