Howdy, Stranger!

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

Supported by

[solved] Logger/Variable relationship

edited September 2012 in OpenSesame

Ok, once I crack this I think I will have it! Sorry for all of the questions and thank you to Sebastiaan and lvanderlinden for your help so far :)

I have read through and tinkered with setting variables and I think I understand how they are setup and spit out in the .csv file for data collection for a normal expirement. However for my questionnaire purposes, I am having a hard time getting the responses to my rating_scale questions (20 in total), 2 multiple choice in my beginning demographic question set, and two free responses at the end of the questionnaire to be saved. In the logger I of course have the "respose" variable that records other text entry components, and I can see the x,y coordinates of my mouse response on my mood map, but no other responses seem to be recorded. I have both time_ and count_ for each one of the rating_scale questions, but no response.

For example, when a participant would click on the 3rd star from the left in one of my 7-choice rating scale questions, I simply want to record "3". I guess that I assumed that this would be a variable built into the rating_scale plugin and that I would be able to choose it in the logger plugin options menu. How would I go about defining the collection of these rating responses?

This OSme questionnaire file should be here:

http://www.filedropper.com/soundscaperesponseexperimentopensesametar

Thank you in advance for any insight.

Cheers,

Kyle

EDIT:

I have tried something different, and it seems more logical, yet my "response" variable in the logger still does not include my new variables in the loops!

Version 2: http://www.filedropper.com/soundscaperesponseexperiment2opensesametaropensesametar

Comments

  • ITA

    Hi Kyle,

    I'll get back to you soon!

    Regard

    Did you like my answer? Feel free to Buy Me A Coffee :)

  • edited September 2012

    Hi Kyle,

    With the second version of your script you're almost there! The only thing is that you should place a logger item at the end of every sequence instead of only at the very end of your experiment. By doing this, every trial/question looks as follows:

    • question + response
    • logger

    The problem with your structure is that the variable "response" is overwritten by the response on every next question. But if you restructure your second version slightly by appending a logger item to every sequence (demo_sequence, question_sequence, and map_sequence), the general variable "response" will always contain the appropriate response. And, in case of your rating questions, this will indeed be a number between 1 and 7.

    Note that you need to append the same logger item to all three sequences. So, for example, use

    • append new item → logger in the demo_sequence, and then
    • append existing item → logger (or however you renamed it) in the other two sequences

    I hope this helps!

    Good luck and feel free to post any further questions!

    Lotje

    Did you like my answer? Feel free to Buy Me A Coffee :)

  • edited 8:25PM

    Lotje,

    That is just what was needed. Still learning the curves of the program, but it's coming together. Many thanks to you!

    Kyle

  • Hello,

    I am struggling with the same problem here. The thing is, that I do not only need the responses logged, but also avialable for later conditions on showing items.

    I tried to save the responses after each questionaire-item into another global variable via inline-script, but from the script item I do not seem to get access to the response variable.

    Does anyone have an idea?

    Thanks.

  • edited September 2012

    If I understand correctly, you basically want to log the responses for every item and access them later on? I'm going to assume you're going to present your questionnaire first and present items later on (based on a participant's responses on the questionnaire).

    You could use an inline script to log the responses into a global variable (a dictionary) and another inline script to access this global variable and set an entry to a variable used in the current sequence (if that sentence makes no sense, don't worry, just look at the example bellow).

    Basically, what were going to do is make a library of a participant's responses to particular questions. For this to work in random order of presentation too (which is the most flexible), the easiest way to do so is probably to add a new variable to your loop-item to hold question numbers in. In this example, we'll call it 'qnr' and we'll set to '1' in the first cycle, to '2' in the second, '3' in the third etc (N.B.: do not include the apostrophes)

    Your experimental sequence could look like this:

    main sequence
    - inline_script_0
    - questionnaire loop (with [qnr]!)
    -- questionnaire sequence
    --- questionnaire item
    --- inline_script_1 (see below)
    - item presentation loop
    -- second sequence
    --- inline_script_2
    --- item for answer dependent showing
    

    inline_script_0

    global respcontainer
    
    # create an empty dictionary
    respcontainer = {}
    

    inline_script_1

    global respcontainer
    
    # add the current response to the dictionary, with the proper question number
    respcontainer[self.get("qnr")] = self.get("response")
    

    inline_script_2

    global respcontainer
    
    # here you implement how you select the question number,
    # this depends on what you want to do with the experiment
    qnr = 
    
    # set it so that OpenSesame items can see it
    self.experiment.set("relevant_resp", respcontainer[qnr])
    

    After this, in your item for answer dependent showing, you can use [relevant_resp] to access the answer that a participant gave on the questionnaire at 'qnr'.

    Hope this helps! In case you're doing anything different from what I assumed here and you can't figure out how to fix that, just let me know!

    Edwin

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games