|
Post by Kerstin on May 11, 2020 14:12:18 GMT
Hi,
I have two variables from an embedded experiment that I wish to display on the last page of the questionnaire. They are correct response times for 'Go' tasks and number of correct responses. I think I have two problems. The first if that my average response time isn't calculating at all. My second is that only the Var Out variable mentioned second under options is carried to the questionnaire.
I have 2 questions 1. Is there anyway to carry two variables over? 2. Can anyone spot where my average response time for correct answers, excluding those which correctly timed out, is going wrong?
Thanks Kerstin
block endexp
feedback
text color yellow
set &MyRT mean c8; select c9 != 1 ; select c7 == 1 #c8 are response times, c9 errors are = 1, and c7 correct (not timeout) ==1 set &MyCorrect count c9; select c9 != 1
text 0 -150 "THANK YOU"
text 0 0 "Scores shown at the end of the survey"
text 0 100 "Please click space to continue."
end
I've tried
options var out &MyRT var out &MyCorrect
but only the &MyCorrect appears at the summary page feedback
l: feedback
t: info
b: Press this button to end the survey
q: <center> <big><font color='green'><b><u> THANK YOU FOR YOUR PARTICIPATION</u></b></font></big>
<ul></ul></center>
<b><big>Experimental Game Result:-</b></big><br>
<font color='blue'>Correct Responses = {$MyCorrect}
Average correct response time = {$MyRT} milliseconds.</font>
|
|
|
Post by Kerstin on May 11, 2020 14:18:51 GMT
Hi - I can see what was wrong with response times so now it's just whether I can carry over two variables. Thanks Kerstin
|
|
|
Post by Kerstin on May 11, 2020 19:10:38 GMT
Figured it out
options var out &MyCorrect &MyRT
|
|
|
Post by PsyToolkit on May 12, 2020 9:11:23 GMT
Note that the lesson also explains this in more detail:
|
|