[Solved] Correct response 0 1
Hello !
I was wondering if there is a way that at the final data I can have an extra column where I can see if the subject has answered correctly or not. So far I have set the correct response but what it appears in my excel is a column with the given answer and another with the correct one (f.e. given anser L, correct response S), so I am trying to figure something that it is going to save me time maybe a column with YES /NO or 0/1... Any ideas?
Thank you in advance :))
Comments
Hi @Vasileia_chr,
In the example you give where you read your data in Excel, if you have columns containing the correct response and the response produced by the subject, you can easily have the response accuracy calculated using a formula and have the formula applied to your whole data set almost instantly:
But the data log produced by OS actually already contains that information... The data log can be a little overwhelming and contains a lot of information. The response accuracy of each trial can be found in the column named
correct. If your data logger is set to its default "Log all values (recommended)" option, that column should appear in your data log. If you set your data logger manually, make sure to include thecorrectvariable in the list of logged variables.For this variable to be calculated correctly, you need to define the correct response in each trial (otherwise the
correctvariable will take an "undefined" value). For example, by creating acorrect_responsecolumn in your loop table. If you call it "correct_response", your input objects (e.g., keyboard or mouse input) will use the information from that variable by default:If you define your correct response under a different variable name, you'll need to set it up as such in your response input object.
For more information, check out the information about response variables on this page:
If response accuracy must be calculated based on some complex rule, you could define your own variable to calculate accuracy in each trial using code (in Python or in Javascript, using the
inline_scriptorinline_Javascriptobjects respectively.Hope this helps!
Fabrice.
Thank you very much! I just removed the letters from "correcct response" and it worked!
Hi @Vasileia_chr,
Great! Glad it now works!
Good luck with your experiment!
Fabrice.