Howdy, Stranger!

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

Supported by

OpenSesame and jsPsych together?

Hello everyone,

I have been working on some simple working memory experiments in OpenSesame which I have uploaded to the Jatos server.

Currently, I have found a cool visual memory study written in jsPsych which I have edited and uploaded to the same experiment in Jatos (as described here: Integrating OSWeb as a JATOS Component — Forum (cogsci.nl)).

However, my problem is when I get the results. At this point, I get a weird looking JSON-file with a mix of OpenSesame results and some jsPsych results which is hard for me to deal with because of several reasons:

1. When I'm using the json-to-csv-converter in OpenSesame, it won't use/convert the data from the jsPsych experiment, and

2. When I'm trying to convert the json file at csvjson.com, it says the file is corrupted.

I have uploaded my data file and the jsPsych-html file as a .txt file underneath.

Do you have any ideas on how to solve this?


Best,

Martin


Comments

  • edited February 2021

    Hi Martin,

    Perhaps the easiest is to export the results separately for each component: instead of exporting them from the Study Results table, you can export them from the Component Results table. Then convert them separately depending on the data you have.

    JsPsych data will have different recommendations for ways to convert data than OSWeb, and you'll be able to apply different tools to (slightly) different data formats.

    If that is too cumbersome, I can think of two alternatives: Maybe ask at the OSWeb forum (tagging here @lvanderlinden in case she can help) for ways to use the OSWeb json converter on jsPsych data.

    Or, do it a bit more 'by hand': I use the rjson package in R or the JSONLab toolbox in matlab to read data in to analyze it. If you code a (short) script to read in data yourself, you'll have maximum flexibilty to treat parts of it differently.

    Hope this helps

    Elisa

  • Hi @elisa,

    Thanks a lot for your reply.

    I think it could be a useful solution by downloading them seperately as components even though it might be quite annoying in the long run.

    I am quite a beginner to all this programming so I wonder if you maybe have some useful links or examples of scripts to read in the data in say R?

    Best,

    Martin

  • Sure,

    You'll find an example of reading and analysing a (completely different) dataset in the JATOS example study Mouse Tracking with Arithmetics (within the Example studies page: http://www.jatos.org/Example-Studies.html)

    Unzip it and check inside the analysis folder. It will require a lot of adapting to your purposes of course, but you'll get an initial idea.

    Best

    Elisa

  • Thanks a lot again, Elisa!

    I will check it out so I can get the gist of it and hopefully use it on my own data.

    Have a good weekend😊


    Best,

    Martin

Sign In or Register to comment.