Adding error message to IAT if participant responds too quickly


Author
Message
crstevenson
crstevenson
Associate Member (161 reputation)Associate Member (161 reputation)Associate Member (161 reputation)Associate Member (161 reputation)Associate Member (161 reputation)Associate Member (161 reputation)Associate Member (161 reputation)Associate Member (161 reputation)Associate Member (161 reputation)
Group: Forum Members
Posts: 14, Visits: 66
Hi,

I'd like to let participants know to slow down if they're responding to trials too quickly. With your help, I've been able to do this at the trial level, but I would like to actually do it at the block level instead, so that this message only appears for certain blocks. I've modified my script (see below) but for some reason nothing is happening - no error message shows up at all. Is there a better way to do this, or a way I can make this work? Thanks!

I've added this (bolded) to my block elements:

<block compatiblepractice_AFArts_WMMath>
/ bgstim = (targetBleftmixed, attributeBleft, targetArightmixed, attributeAright)
/ trials = [
    1,3,5,7,9,11,13,15,17,19= random(targetBleft, targetAright);
    2,4,6,8,10,12,14,16,18,20 = random(attributeBL, attributeAR)]
/ errormessage = true(error,200)
/ responsemode = correct
/ ontrialend = [
    if(block.compatiblepractice_AFArts_WMMath.latency <= 10000 && block.compatiblepractice_AFArts_WMMath.currenttrialnumber != 1 && script.currenttrial != "toofast") {
        values.sum1a += block.compatiblepractice_AFArts_WMMath.latency;
        values.n1a += 1;
        values.ss1a += (block.compatiblepractice_AFArts_WMMath.latency * block.compatiblepractice_AFArts_WMMath.latency);
        values.n_correct += block.compatiblepractice_AFArts_WMMath.correct;
    };
    
    if (block.compatiblepractice_AFArts_WMMath.latency < parameters.toofastlatency) {
        return trial.toofast;
    };

    if(block.compatiblepractice_AFArts_WMMath.latency < 300 && script.currenttrial != "toofast") {
        list.RT300.appenditem(1);
    } else {
        list.RT300.appenditem(0);
    };
]
</block>

and for reference, these are the other attributes called in that line:

<parameters>
/ toofastlatency = 300
/showsummaryfeedback = false
/ISI = 250
</parameters>

<trial toofast>
/ stimulusframes = [1=toofasttxt]
/ validresponse = (0)
/ trialduration = 5000
/ recorddata = false
/ posttrialpause = parameters.ISI
</trial>

<text toofasttxt>
/ items = ("You're going too fast. Please go as fast as you can, but try to respond as accurately as possible.")
/ txcolor = red
</text>
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
crstevenson - 7/1/2020
Hi,

I'd like to let participants know to slow down if they're responding to trials too quickly. With your help, I've been able to do this at the trial level, but I would like to actually do it at the block level instead, so that this message only appears for certain blocks. I've modified my script (see below) but for some reason nothing is happening - no error message shows up at all. Is there a better way to do this, or a way I can make this work? Thanks!

I've added this (bolded) to my block elements:

<block compatiblepractice_AFArts_WMMath>
/ bgstim = (targetBleftmixed, attributeBleft, targetArightmixed, attributeAright)
/ trials = [
    1,3,5,7,9,11,13,15,17,19= random(targetBleft, targetAright);
    2,4,6,8,10,12,14,16,18,20 = random(attributeBL, attributeAR)]
/ errormessage = true(error,200)
/ responsemode = correct
/ ontrialend = [
    if(block.compatiblepractice_AFArts_WMMath.latency <= 10000 && block.compatiblepractice_AFArts_WMMath.currenttrialnumber != 1 && script.currenttrial != "toofast") {
        values.sum1a += block.compatiblepractice_AFArts_WMMath.latency;
        values.n1a += 1;
        values.ss1a += (block.compatiblepractice_AFArts_WMMath.latency * block.compatiblepractice_AFArts_WMMath.latency);
        values.n_correct += block.compatiblepractice_AFArts_WMMath.correct;
    };
    
    if (block.compatiblepractice_AFArts_WMMath.latency < parameters.toofastlatency) {
        return trial.toofast;
    };

    if(block.compatiblepractice_AFArts_WMMath.latency < 300 && script.currenttrial != "toofast") {
        list.RT300.appenditem(1);
    } else {
        list.RT300.appenditem(0);
    };
]
</block>

and for reference, these are the other attributes called in that line:

<parameters>
/ toofastlatency = 300
/showsummaryfeedback = false
/ISI = 250
</parameters>

<trial toofast>
/ stimulusframes = [1=toofasttxt]
/ validresponse = (0)
/ trialduration = 5000
/ recorddata = false
/ posttrialpause = parameters.ISI
</trial>

<text toofasttxt>
/ items = ("You're going too fast. Please go as fast as you can, but try to respond as accurately as possible.")
/ txcolor = red
</text>

/ontrialend attributes are not /branch attributes, so this cannot and is not supposed to work.

You must /branch at the <trial> level, but you are of course free to make that conditonal on the block that is currently running.

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
Dave - 7/1/2020
crstevenson - 7/1/2020
Hi,

I'd like to let participants know to slow down if they're responding to trials too quickly. With your help, I've been able to do this at the trial level, but I would like to actually do it at the block level instead, so that this message only appears for certain blocks. I've modified my script (see below) but for some reason nothing is happening - no error message shows up at all. Is there a better way to do this, or a way I can make this work? Thanks!

I've added this (bolded) to my block elements:

<block compatiblepractice_AFArts_WMMath>
/ bgstim = (targetBleftmixed, attributeBleft, targetArightmixed, attributeAright)
/ trials = [
    1,3,5,7,9,11,13,15,17,19= random(targetBleft, targetAright);
    2,4,6,8,10,12,14,16,18,20 = random(attributeBL, attributeAR)]
/ errormessage = true(error,200)
/ responsemode = correct
/ ontrialend = [
    if(block.compatiblepractice_AFArts_WMMath.latency <= 10000 && block.compatiblepractice_AFArts_WMMath.currenttrialnumber != 1 && script.currenttrial != "toofast") {
        values.sum1a += block.compatiblepractice_AFArts_WMMath.latency;
        values.n1a += 1;
        values.ss1a += (block.compatiblepractice_AFArts_WMMath.latency * block.compatiblepractice_AFArts_WMMath.latency);
        values.n_correct += block.compatiblepractice_AFArts_WMMath.correct;
    };
    
    if (block.compatiblepractice_AFArts_WMMath.latency < parameters.toofastlatency) {
        return trial.toofast;
    };

    if(block.compatiblepractice_AFArts_WMMath.latency < 300 && script.currenttrial != "toofast") {
        list.RT300.appenditem(1);
    } else {
        list.RT300.appenditem(0);
    };
]
</block>

and for reference, these are the other attributes called in that line:

<parameters>
/ toofastlatency = 300
/showsummaryfeedback = false
/ISI = 250
</parameters>

<trial toofast>
/ stimulusframes = [1=toofasttxt]
/ validresponse = (0)
/ trialduration = 5000
/ recorddata = false
/ posttrialpause = parameters.ISI
</trial>

<text toofasttxt>
/ items = ("You're going too fast. Please go as fast as you can, but try to respond as accurately as possible.")
/ txcolor = red
</text>

/ontrialend attributes are not /branch attributes, so this cannot and is not supposed to work.

You must /branch at the <trial> level, but you are of course free to make that conditonal on the block that is currently running.

Extending the previous example ( https://www.millisecond.com/forums/Topic29176.aspx ) for illustration, suppose you only want the "too fast" message for the two shorter test blocks (compatibletest1 and incompatibletest1), then you would simply state

<trial attributeA>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulusframes = [1 = attributeA, errorReminder]
/ posttrialpause = parameters.ISI
/ branch = [
    if ((script.currentblock == "compatibletest1" || script.currentblock == "incompatibletest1") && trial.attributeA.latency < parameters.toofastlatency) {
        return trial.toofast;
    }
]
</trial>

<trial attributeB>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulusframes = [1 = attributeB, errorReminder]
/ posttrialpause = parameters.ISI
/ branch = [
    if ((script.currentblock == "compatibletest1" || script.currentblock == "incompatibletest1") && trial.attributeB.latency < parameters.toofastlatency) {
        return trial.toofast;
    }
]
</trial>

<trial targetBleft>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulusframes = [1 = targetB, errorReminder]
/ posttrialpause = parameters.ISI
/ branch = [
    if ((script.currentblock == "compatibletest1" || script.currentblock == "incompatibletest1") && trial.targetBleft.latency < parameters.toofastlatency) {
        return trial.toofast;
    }
]
</trial>

<trial targetBright>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulusframes = [1 = targetB, errorReminder]
/ posttrialpause = parameters.ISI
/ branch = [
    if ((script.currentblock == "compatibletest1" || script.currentblock == "incompatibletest1") && trial.targetBright.latency < parameters.toofastlatency) {
        return trial.toofast;
    }
]
</trial>

<trial targetAleft>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulusframes = [1 = targetA, errorReminder]
/ posttrialpause = parameters.ISI
/ branch = [
    if ((script.currentblock == "compatibletest1" || script.currentblock == "incompatibletest1") && trial.targetAleft.latency < parameters.toofastlatency) {
        return trial.toofast;
    }
]
</trial>

<trial targetAright>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulusframes = [1 = targetA, errorReminder]
/ posttrialpause = parameters.ISI
/ branch = [
    if ((script.currentblock == "compatibletest1" || script.currentblock == "incompatibletest1") && trial.targetAright.latency < parameters.toofastlatency) {
        return trial.toofast;
    }
]
</trial>

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
Dave - 7/1/2020
Dave - 7/1/2020
crstevenson - 7/1/2020
Hi,

I'd like to let participants know to slow down if they're responding to trials too quickly. With your help, I've been able to do this at the trial level, but I would like to actually do it at the block level instead, so that this message only appears for certain blocks. I've modified my script (see below) but for some reason nothing is happening - no error message shows up at all. Is there a better way to do this, or a way I can make this work? Thanks!

I've added this (bolded) to my block elements:

<block compatiblepractice_AFArts_WMMath>
/ bgstim = (targetBleftmixed, attributeBleft, targetArightmixed, attributeAright)
/ trials = [
    1,3,5,7,9,11,13,15,17,19= random(targetBleft, targetAright);
    2,4,6,8,10,12,14,16,18,20 = random(attributeBL, attributeAR)]
/ errormessage = true(error,200)
/ responsemode = correct
/ ontrialend = [
    if(block.compatiblepractice_AFArts_WMMath.latency <= 10000 && block.compatiblepractice_AFArts_WMMath.currenttrialnumber != 1 && script.currenttrial != "toofast") {
        values.sum1a += block.compatiblepractice_AFArts_WMMath.latency;
        values.n1a += 1;
        values.ss1a += (block.compatiblepractice_AFArts_WMMath.latency * block.compatiblepractice_AFArts_WMMath.latency);
        values.n_correct += block.compatiblepractice_AFArts_WMMath.correct;
    };
    
    if (block.compatiblepractice_AFArts_WMMath.latency < parameters.toofastlatency) {
        return trial.toofast;
    };

    if(block.compatiblepractice_AFArts_WMMath.latency < 300 && script.currenttrial != "toofast") {
        list.RT300.appenditem(1);
    } else {
        list.RT300.appenditem(0);
    };
]
</block>

and for reference, these are the other attributes called in that line:

<parameters>
/ toofastlatency = 300
/showsummaryfeedback = false
/ISI = 250
</parameters>

<trial toofast>
/ stimulusframes = [1=toofasttxt]
/ validresponse = (0)
/ trialduration = 5000
/ recorddata = false
/ posttrialpause = parameters.ISI
</trial>

<text toofasttxt>
/ items = ("You're going too fast. Please go as fast as you can, but try to respond as accurately as possible.")
/ txcolor = red
</text>

/ontrialend attributes are not /branch attributes, so this cannot and is not supposed to work.

You must /branch at the <trial> level, but you are of course free to make that conditonal on the block that is currently running.

Extending the previous example ( https://www.millisecond.com/forums/Topic29176.aspx ) for illustration, suppose you only want the "too fast" message for the two shorter test blocks (compatibletest1 and incompatibletest1), then you would simply state

<trial attributeA>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulusframes = [1 = attributeA, errorReminder]
/ posttrialpause = parameters.ISI
/ branch = [
    if ((script.currentblock == "compatibletest1" || script.currentblock == "incompatibletest1") && trial.attributeA.latency < parameters.toofastlatency) {
        return trial.toofast;
    }
]
</trial>

<trial attributeB>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulusframes = [1 = attributeB, errorReminder]
/ posttrialpause = parameters.ISI
/ branch = [
    if ((script.currentblock == "compatibletest1" || script.currentblock == "incompatibletest1") && trial.attributeB.latency < parameters.toofastlatency) {
        return trial.toofast;
    }
]
</trial>

<trial targetBleft>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulusframes = [1 = targetB, errorReminder]
/ posttrialpause = parameters.ISI
/ branch = [
    if ((script.currentblock == "compatibletest1" || script.currentblock == "incompatibletest1") && trial.targetBleft.latency < parameters.toofastlatency) {
        return trial.toofast;
    }
]
</trial>

<trial targetBright>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulusframes = [1 = targetB, errorReminder]
/ posttrialpause = parameters.ISI
/ branch = [
    if ((script.currentblock == "compatibletest1" || script.currentblock == "incompatibletest1") && trial.targetBright.latency < parameters.toofastlatency) {
        return trial.toofast;
    }
]
</trial>

<trial targetAleft>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulusframes = [1 = targetA, errorReminder]
/ posttrialpause = parameters.ISI
/ branch = [
    if ((script.currentblock == "compatibletest1" || script.currentblock == "incompatibletest1") && trial.targetAleft.latency < parameters.toofastlatency) {
        return trial.toofast;
    }
]
</trial>

<trial targetAright>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulusframes = [1 = targetA, errorReminder]
/ posttrialpause = parameters.ISI
/ branch = [
    if ((script.currentblock == "compatibletest1" || script.currentblock == "incompatibletest1") && trial.targetAright.latency < parameters.toofastlatency) {
        return trial.toofast;
    }
]
</trial>

Or, if you want to make things slightly more flexible and elegant, create a parameter determining whether the "too fast" trial should be run

<parameters>
/ showtoofast = false
....
</parameters>

and set that variable to true in the blocks where you want to show the reminder and to false in the blocks where you don't

<block attributepractice>
/ onblockbegin = [
  parameters.showtoofast = false;
]

/ bgstim = (attributeAleft, attributeBright)
/ trials = [
  1=instructions;
  2-21 = random(attributeA, attributeB);
]
/ errormessage = true(error,200)
/ responsemode = correct
</block>

...

<block compatibletest1>
/ onblockbegin = [
    parameters.showtoofast = true;
]

/ bgstim = (targetAleftmixed, orleft, attributeAleft, targetBrightmixed, orright, attributeBright)
/ trials = [
    1=instructions;
    3,5,7,9,11,13,15,17,19,21= random(targetAleft, targetBright);
    2,4,6,8,10,12,14,16,18,20 = random(attributeA, attributeB)]
/ errormessage = true(error,200)
/ responsemode = correct
/ ontrialend = [
    if (block.compatibletest1.latency <= 10000 && block.compatibletest1.currenttrialnumber != 1 && script.currenttrial != "toofast") {
        values.sum1a += block.compatibletest1.latency;
        values.n1a += 1;
        values.ss1a += (block.compatibletest1.latency * block.compatibletest1.latency);
        values.n_correct += block.compatibletest1.correct;
    };
    if (block.compatibletest1.latency < 300 && script.currenttrial != "toofast") {
        list.RT300.appenditem(1);
    } else {
        list.RT300.appenditem(0);
    };
]
</block>

...

and do

<trial attributeA>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulusframes = [1 = attributeA, errorReminder]
/ posttrialpause = parameters.ISI
/ branch = [
    if (parameters.showtoofast && trial.attributeA.latency < parameters.toofastlatency) {
        return trial.toofast;
    }
]
</trial>

at the trial-level.
Attachments
iat_toofast.iqx (144 views, 43.00 KB)
crstevenson
crstevenson
Associate Member (161 reputation)Associate Member (161 reputation)Associate Member (161 reputation)Associate Member (161 reputation)Associate Member (161 reputation)Associate Member (161 reputation)Associate Member (161 reputation)Associate Member (161 reputation)Associate Member (161 reputation)
Group: Forum Members
Posts: 14, Visits: 66
Dave - 7/1/2020
Dave - 7/1/2020
Dave - 7/1/2020
crstevenson - 7/1/2020
Hi,

I'd like to let participants know to slow down if they're responding to trials too quickly. With your help, I've been able to do this at the trial level, but I would like to actually do it at the block level instead, so that this message only appears for certain blocks. I've modified my script (see below) but for some reason nothing is happening - no error message shows up at all. Is there a better way to do this, or a way I can make this work? Thanks!

I've added this (bolded) to my block elements:

<block compatiblepractice_AFArts_WMMath>
/ bgstim = (targetBleftmixed, attributeBleft, targetArightmixed, attributeAright)
/ trials = [
    1,3,5,7,9,11,13,15,17,19= random(targetBleft, targetAright);
    2,4,6,8,10,12,14,16,18,20 = random(attributeBL, attributeAR)]
/ errormessage = true(error,200)
/ responsemode = correct
/ ontrialend = [
    if(block.compatiblepractice_AFArts_WMMath.latency <= 10000 && block.compatiblepractice_AFArts_WMMath.currenttrialnumber != 1 && script.currenttrial != "toofast") {
        values.sum1a += block.compatiblepractice_AFArts_WMMath.latency;
        values.n1a += 1;
        values.ss1a += (block.compatiblepractice_AFArts_WMMath.latency * block.compatiblepractice_AFArts_WMMath.latency);
        values.n_correct += block.compatiblepractice_AFArts_WMMath.correct;
    };
    
    if (block.compatiblepractice_AFArts_WMMath.latency < parameters.toofastlatency) {
        return trial.toofast;
    };

    if(block.compatiblepractice_AFArts_WMMath.latency < 300 && script.currenttrial != "toofast") {
        list.RT300.appenditem(1);
    } else {
        list.RT300.appenditem(0);
    };
]
</block>

and for reference, these are the other attributes called in that line:

<parameters>
/ toofastlatency = 300
/showsummaryfeedback = false
/ISI = 250
</parameters>

<trial toofast>
/ stimulusframes = [1=toofasttxt]
/ validresponse = (0)
/ trialduration = 5000
/ recorddata = false
/ posttrialpause = parameters.ISI
</trial>

<text toofasttxt>
/ items = ("You're going too fast. Please go as fast as you can, but try to respond as accurately as possible.")
/ txcolor = red
</text>

/ontrialend attributes are not /branch attributes, so this cannot and is not supposed to work.

You must /branch at the <trial> level, but you are of course free to make that conditonal on the block that is currently running.

Extending the previous example ( https://www.millisecond.com/forums/Topic29176.aspx ) for illustration, suppose you only want the "too fast" message for the two shorter test blocks (compatibletest1 and incompatibletest1), then you would simply state

<trial attributeA>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulusframes = [1 = attributeA, errorReminder]
/ posttrialpause = parameters.ISI
/ branch = [
    if ((script.currentblock == "compatibletest1" || script.currentblock == "incompatibletest1") && trial.attributeA.latency < parameters.toofastlatency) {
        return trial.toofast;
    }
]
</trial>

<trial attributeB>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulusframes = [1 = attributeB, errorReminder]
/ posttrialpause = parameters.ISI
/ branch = [
    if ((script.currentblock == "compatibletest1" || script.currentblock == "incompatibletest1") && trial.attributeB.latency < parameters.toofastlatency) {
        return trial.toofast;
    }
]
</trial>

<trial targetBleft>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulusframes = [1 = targetB, errorReminder]
/ posttrialpause = parameters.ISI
/ branch = [
    if ((script.currentblock == "compatibletest1" || script.currentblock == "incompatibletest1") && trial.targetBleft.latency < parameters.toofastlatency) {
        return trial.toofast;
    }
]
</trial>

<trial targetBright>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulusframes = [1 = targetB, errorReminder]
/ posttrialpause = parameters.ISI
/ branch = [
    if ((script.currentblock == "compatibletest1" || script.currentblock == "incompatibletest1") && trial.targetBright.latency < parameters.toofastlatency) {
        return trial.toofast;
    }
]
</trial>

<trial targetAleft>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulusframes = [1 = targetA, errorReminder]
/ posttrialpause = parameters.ISI
/ branch = [
    if ((script.currentblock == "compatibletest1" || script.currentblock == "incompatibletest1") && trial.targetAleft.latency < parameters.toofastlatency) {
        return trial.toofast;
    }
]
</trial>

<trial targetAright>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulusframes = [1 = targetA, errorReminder]
/ posttrialpause = parameters.ISI
/ branch = [
    if ((script.currentblock == "compatibletest1" || script.currentblock == "incompatibletest1") && trial.targetAright.latency < parameters.toofastlatency) {
        return trial.toofast;
    }
]
</trial>

Or, if you want to make things slightly more flexible and elegant, create a parameter determining whether the "too fast" trial should be run

<parameters>
/ showtoofast = false
....
</parameters>

and set that variable to true in the blocks where you want to show the reminder and to false in the blocks where you don't

<block attributepractice>
/ onblockbegin = [
  parameters.showtoofast = false;
]

/ bgstim = (attributeAleft, attributeBright)
/ trials = [
  1=instructions;
  2-21 = random(attributeA, attributeB);
]
/ errormessage = true(error,200)
/ responsemode = correct
</block>

...

<block compatibletest1>
/ onblockbegin = [
    parameters.showtoofast = true;
]

/ bgstim = (targetAleftmixed, orleft, attributeAleft, targetBrightmixed, orright, attributeBright)
/ trials = [
    1=instructions;
    3,5,7,9,11,13,15,17,19,21= random(targetAleft, targetBright);
    2,4,6,8,10,12,14,16,18,20 = random(attributeA, attributeB)]
/ errormessage = true(error,200)
/ responsemode = correct
/ ontrialend = [
    if (block.compatibletest1.latency <= 10000 && block.compatibletest1.currenttrialnumber != 1 && script.currenttrial != "toofast") {
        values.sum1a += block.compatibletest1.latency;
        values.n1a += 1;
        values.ss1a += (block.compatibletest1.latency * block.compatibletest1.latency);
        values.n_correct += block.compatibletest1.correct;
    };
    if (block.compatibletest1.latency < 300 && script.currenttrial != "toofast") {
        list.RT300.appenditem(1);
    } else {
        list.RT300.appenditem(0);
    };
]
</block>

...

and do

<trial attributeA>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulusframes = [1 = attributeA, errorReminder]
/ posttrialpause = parameters.ISI
/ branch = [
    if (parameters.showtoofast && trial.attributeA.latency < parameters.toofastlatency) {
        return trial.toofast;
    }
]
</trial>

at the trial-level.

Thank you so much! This was extremely helpful!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search