Hi! I\'m working in MatLab and I just needed some help. So here is the question
ID: 2253630 • Letter: H
Question
Hi! I'm working in MatLab and I just needed some help. So here is the question I am trying to answer:
Calculate the hit rate (proportion of correct trials out of the total number of trials at each level of noise) where a correct trials must have response time greater than 200 ms and less than 1400 ms.
basically i have a data file and it includes data for this reserach study. This is how it can be interpreted:
(1) The noise condition is coded in the variable noise. The values are 0.3, 0.45, and 0.5 which represent the contrast of the noise.
(2) The subjects accuracy is coded in the variable correct, with 1 indicating a correct trial, 0 indicating an incorrect trial, and NaN indicating that either the subject did not respond or the subject gave multiple responses.
(3) Response time is given in the variable rt.
So with that info I need to write out a command. I am having trouble incorporating the last part of the problem which is " where a correct trials must have response time greater than 200 ms and less than 1400 ms"
This is what I have currently for the first hit rate: HitRateNoisept3 = length(find(correct(find(noise==.3)) == 1)) / length(find(noise==.3))
as you can see, i'm missing the response time conditions. Idk how to add it in. Thanks for any help!
Explanation / Answer
You can modify the command to be
HitRateNoisept3 =length(find((correct(find(noise==0.3 & rt>200 & rt<1400))==1)))/length(find(noise==0.3))
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.