Group: Forum Members
Posts: 21,
Visits: 59
|
Hello,
For our study we ask participants to sort pictures of people into short hair vs. long hair, while also looking for some targets. To sort for short hair, they have to press the 'S' key on their keyboard. To sort for long hair, they have to press the 'L' key. If they see a target they have to press 'H'. The way our script is right now, it records each correct response and the average correct responses. However, we want to also have a summary variable for the proportion of pictures that participants respond with the "H" key on. So, although the correct 'H' response is only for the targets, we want to calculate each time they press 'H' and have that as a variable in our summary data. Hope that makes sense.
I have attached all of our script and also present a part of it here:
<trial ShortHairFace> / stimulustimes = [0=ready; 100=ShortHairFace,PromptAssign] / validresponse = ("L","H", "S") / correctresponse = ("S") /beginresponsetime = 100 / ontrialend = [ list.ShortHair.insertitem(trial.ShortHairFace.correct, 1); list.ongoingaccuracy.insertitem(trial.ShortHairFace.correct,1); if (trial.ShortHairFace.correct) { list.ShortHair_correctRT.insertitem(trial.ShortHairFace.latency, 1); list.ongoingRT.insertitem(trial.ShortHairFace.latency,1); }; ] </trial>
|