Howdy, Stranger!

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

Supported by

Rating own responses

Hello,

I'm new to OpenSesame and I'm trying to create a "lexical decision task" that is divided into 3 subtasks:

1. Participants see a word on the screen for which they have to select a gendered article.

2. Participants have to respond whether they know the word on the screen or not.

3. Participants have to rate how confident they are with their article selection.


Subtask 3 – the rating – is supposed to happen at the end, after subtasks 1 and 2 have been finished. So, currently I have subtask 1 and subtask 2 in the same loop, and subtask 3 in a separate (not-nested) loop. However, the problem is that only the last response is shown with this set-up and I do not know how to change it so that all of the responses are shown.


Thanks (in advance) for your suggestions/help!


Best,

Regina

Comments

  • Hi @regina09 ,

    If I understand correctly, you're running to the issue that the variable response is always set to the last response, which in your case that would be the response given under 2 while doing task 3. Is that correct?

    If so, you can probably make use of the fact that there is also a response variable called response_[item name] which reflects the last response of a specific response item (such as keyboard_response). Assuming that each task in your case is using a different response item, this should allow you to retrieve the response on each of the tasks.

    Hope this helps!

    — Sebastiaan

  • Hi @sebastiaan,

    Thanks for the quick response.

    The problem that I'm encountering is that I only seem to be able to retrieve the last response of subtask 1. However, I want participants to rate all of their responses from subtask 1.

  • Hi @regina09 ,

    Ah ok, I see. If you are running your task on the desktop (and can thus use the Python API), you can make use of the responses object, which keeps a history of all responses. Exactly how to use this depends on the specifics of your task, but to give you an idea of the general logic: you can loop through all responses as shown below. The response.item property then allows you to select only the responses that come from a specific response object.

    for response in responses:
        print(response.response, response.response_time, response.item)
    

    See also:

    If you are running the task in a browser with OSWeb, then you cannot make use of the responses object (which doesn't exist in the JavaScript API as of OSWeb 2.0), and so you will have to implement a custom script to keep track of responses.

    Does that help?

    — Sebastiaan

  • Hi @sebastiaan,

    Sorry, it took me a while to get back to you. Thank you for your help!

    I think we were able to implement your suggestion.

    But I actually noticed another problem: for task 1 the list of items is random even though it set to sequential within the loop. Do you know why this may happen?

    Or better, do you know a good way to transfer the item + article selection from task 1 to task 3?

    Thanks again for your help!

    -Regina

  • Hi @regina09 ,

    I think we were able to implement your suggestion.

    Good to hear!

    But I actually noticed another problem: for task 1 the list of items is random even though it set to sequential within the loop. Do you know why this may happen?

    and

    Or better, do you know a good way to transfer the item + article selection from task 1 to task 3?

    Both of these questions are entirely dependent on the details of how the experiment is implemented, so I cannot give you a generally applicable answer.

    What I would do is first implement everything yourself as far as you manage to, and then if you get stuck, post further questions here. When doing so, make sure to ask a specific question that clearly outlines what you want to accomplish, what you have done so far, and in what sense things don't work as you would like them to. Only then can we help you!

    Good luck!

    — Sebastiaan

  • Hi @sebastiaan,

    Thanks for your response!

    We decided to go with a different order for the experimental tasks which means I don't have the issue of having to link the stimulus with the participant's response anymore.


    Thanks for the help so far!

    -Regina

Sign In or Register to comment.