Skip to content
Discussion options

You must be logged in to vote

Ah, sorry, that was my fault - I told you to add the data to the practice trials like this:

data: {
  trial_part: "practice_question",
  correct_response: jsPsych.timelineVariable("correct_response"),
  stimulus: jsPsych.timelineVariable("stimulus"),
  question: jsPsych.timelineVariable("question")
}

But that doesn't work because, in your practice_stimuli array, the correct_response and stimulus keys are nested inside of the data key, which means that they can't be accessed by the jsPsych.timelineVariable function. So the reason that your responses were always scored as incorrect is because correct_response was never stored in the trial data.

I think the easiest solution is to remove the …

Replies: 2 comments 2 replies

Comment options

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

Comment options

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

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