01-06-2021, 04:38 PM
Hello! Calculating the score based on two responses is possible by using multiple triggers. You should have two responses in your experiment: one where the target is "same" and another where the target is "different". Create two different trial templates for your trials that correspond to each different response. Then, your branching block should look like this:
"accuracyBlock": {
// block definition
"branching": {
"method": "accuracy",
"min_score": 0.8,
"triggers": [
{"trial_template": "SameTemplate", "response": "SameResponse"},
{"trial_template": "DifferentTemplate", "response":"DifferentResponse"}
],
"branches": {"pass": true, "fail": false}
Here, the min_score is calculated out of the combination of responses where "same" is the target and the responses where "different" is the target.
"accuracyBlock": {
// block definition
"branching": {
"method": "accuracy",
"min_score": 0.8,
"triggers": [
{"trial_template": "SameTemplate", "response": "SameResponse"},
{"trial_template": "DifferentTemplate", "response":"DifferentResponse"}
],
"branches": {"pass": true, "fail": false}
Here, the min_score is calculated out of the combination of responses where "same" is the target and the responses where "different" is the target.