Give feedback after a block of trials depending on percent correct responses


Author
Message
Diane
Diane
Distinguished Member (4.3K reputation)Distinguished Member (4.3K reputation)Distinguished Member (4.3K reputation)Distinguished Member (4.3K reputation)Distinguished Member (4.3K reputation)Distinguished Member (4.3K reputation)Distinguished Member (4.3K reputation)Distinguished Member (4.3K reputation)Distinguished Member (4.3K reputation)
Group: Forum Members
Posts: 53, Visits: 131
Hi,
How can I give feedback at the end of a block of trials that depends on the percent correct responses. For example, if the percent is < 75% the feedback is "Try to make fewer errors" and if the percent is > 95% the feedback is "You're doing great!"
Thanks!
Diane

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: 13K, Visits: 104K
Diane - 5/12/2023
Hi,
How can I give feedback at the end of a block of trials that depends on the percent correct responses. For example, if the percent is < 75% the feedback is "Try to make fewer errors" and if the percent is > 95% the feedback is "You're doing great!"
Thanks!
Diane

<expressions>
/ feedbackmsg = if (block.example.percentcorrect < 75) {
    "Try to make fewer errors!"
    } else if (block.example.percentcorrect > 95) {
        "You're doing great!"
    }
</expressions>

<page feedbackpage>
^You responded correctly in <%block.example.percentcorrect%>% of trials.
^^<%expressions.feedbackmsg%>
</page>

<block example>
/ postinstructions = (feedbackpage)
/ trials = [1-100 = noreplace(a, b)]
</block>

<trial a>
/ stimulusframes = [1=atxt]
/ validresponse = ("a", "b")
/ correctresponse = ("a")
</trial>

<trial b>
/ stimulusframes = [1=btxt]
/ validresponse = ("a", "b")
/ correctresponse = ("b")
</trial>

<text atxt>
/ items = ("A")
</text>

<text btxt>
/ items = ("B")
</text>

Edited Last Year by Dave
Diane
Diane
Distinguished Member (4.3K reputation)Distinguished Member (4.3K reputation)Distinguished Member (4.3K reputation)Distinguished Member (4.3K reputation)Distinguished Member (4.3K reputation)Distinguished Member (4.3K reputation)Distinguished Member (4.3K reputation)Distinguished Member (4.3K reputation)Distinguished Member (4.3K reputation)
Group: Forum Members
Posts: 53, Visits: 131
Dave - 5/12/2023
Diane - 5/12/2023
Hi,
How can I give feedback at the end of a block of trials that depends on the percent correct responses. For example, if the percent is < 75% the feedback is "Try to make fewer errors" and if the percent is > 95% the feedback is "You're doing great!"
Thanks!
Diane

<expressions>
/ feedbackmsg = if (block.example.percentcorrect < 75) {
    "Try to make fewer errors!"
    } else if (block.example.percentcorrect > 95) {
        "You're doing great!"
    }
</expressions>

<page feedbackpage>
^You responded correctly in <%block.example.percentcorrect%>% of trials.
^^<%expressions.feedbackmsg%>
</page>

<block example>
/ postinstructions = (feedbackpage)
/ trials = [1-100 = noreplace(a, b)]
</block>

<trial a>
/ stimulusframes = [1=atxt]
/ validresponse = ("a", "b")
/ correctresponse = ("a")
</trial>

<trial b>
/ stimulusframes = [1=btxt]
/ validresponse = ("a", "b")
/ correctresponse = ("b")
</trial>

<text atxt>
/ items = ("A")
</text>

<text btxt>
/ items = ("B")
</text>

Great, this is exactly what I needed!
Thank you so much,
Diane
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search