Group: Forum Members
Posts: 4,
Visits: 27
|
Hi,
I have a task where people respond to types of stimuli (ex. happy trials, sad trials). I want to be able to get the mean latencies for each trial type, but separately get the latencies for just the correct trials and for just he incorrect trials (so I'd end up with Happy_correctmeanlatency, Happy_incorrectmeanlatency, Sad_correctmeanlatency, Sad_incorrectmeanlatency, etc).
I was thinking I could use /onblockend and some if statements to calculate the latencies for each, but I'm getting confused on exactly how to do it.
Would it be...
/onblockend = [if (trial.Happy.correct == true) values.Happy_correctmeanlatency = meanlatency(Happy)] /onblockend = [if (trial.Happy.correct == false) values.Happy_incorrectmeanlatency = meanlatency(Happy)]
...and then repeat for other trial types in the block?
|