Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Defining the correct response for multiple choice questions using the form base plugin

Hi,

I'm new to OpenSesame, so this might be a very obvious question and I'm sure there is an easy answer. I'm trying to create a file that can run a series of multiple choice questions that participants can answer via checkboxes.

I've written the script in OpenSesame using the form_base item, and it is working well, but I'm having trouble logging the data. I want to be able to log reaction time per answer, from the introduction to the selection of "Next" for each question, and I also want to be able to log whether the question was answered correctly or not, along with an accuracy score.

How can I go about defining the correct answer and logging this information?

Thank you!
Lauren

Comments

  • Hi Lauren,

    As far as I know (please correct me if I'm wrong) the form items have no 'correct' nor a 'response time variable' so you will have to code this into inline_script items yourself.

    You could store the time in an inline_script before your form_base item and calculate the time past in an inline_script item after your form_base item. Please see http://osdoc.cogsci.nl/3.1/manual/python/clock/

    After that you can use the responses class to add the response, including the calculated response time and if the response was correct or not. This will allow you to use responses.acc to get an accuracy score.

    Hope this helps,
    Jarik

    PS If applicable start with learning some basic Python first:

Sign In or Register to comment.