Skip to content
Discussion options

You must be logged in to vote

This looks like the right general approach to me, and I don't immediately see any bugs in the code.

If you have multiple trial parts you will need to do some kind of filter statement like the one you describe. You'll need to do that filter before the .last(3) part, or you won't get three trials with a correct value. The full command might look like this:

var count = jsPsych.data.get().filter({test_part: 'response_screen'}).last(3).filter({correct: false}).count();

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@trig11
Comment options

@jodeleeuw
Comment options

@trig11
Comment options

@trig11
Comment options

@jodeleeuw
Comment options

Answer selected by trig11
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