Howdy, Stranger!

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

Supported by

Confidence rating/likert scale

Hi,
I'm trying to add in a likert scale to my experiment, to assess the participant's confidence in their performance. I've attempted to use this page http://osdoc.cogsci.nl/3.1/manual/forms/widgets/rating_scale/ to insert the scale as I would like it, however I don't think I'm understanding it correctly. Simply copying in the example script has given me the scale, however I don't understand how to include or adapt the rest of the coding on the page. I also need the scale to appear every 20 trials, however I don't know how to alter this either. Any suggestions would be greatly appreciated, thanks in advance

Comments

  • This is the python script I've copied and altered so far:

    from libopensesame import widgets
    form = widgets.form(exp)
    label = widgets.label(form, text='Please rate your confidence in your performance')
    rating_scale = widgets.rating_scale(form, nodes=['1', '2', '3', '4', '5', '6', '7'], var='response')
    form.set_widget(label, (0,0))
    form.set_widget(rating_scale, (0,1))
    form._exec()

    function rating_scale.init(form, nodes=7, click_accepts='False', orientation=u'horizontal', var='None', def='None')
    function rating_scale.draw_frame(rect=None, style=u'normal')
    function rating_scale.on_mouse_click(pos)
    function rating_scale.render()
    function rating_scale.set_rect(rect)
    function rating_scale.set_value(val)
    function rating_scale.set_var(val, var=None)

    At the moment the experiment is crashing due to invalid syntax in the 'function rating_scale.init' line. I have altered this line, however it was not working to start off with, and I don't seem to be understanding the Rating_scale functions page, or how(/if) to change the coding for what I need

  • Hi,

    I also need the scale to appear every 20 trials, however I don't know how to alter this either. Any suggestions would be greatly appreciated, thanks in advance

    Opensesame keeps track of the current trial with its count_<item_label> variables. You can also define your own variable in the loop table or in an inline_script. The idea is then, to put in the show_if field of the form (accessible when clicking on the trial_sequence in the overview area), something like [trial_no]%20==0. This translates to: if the rest of the division of current trial number and 20 is 0, execute this item.
    If your entire form is defined inline, you can also do something like:

    if var.trial_no%20 == 0:
         form._exec()
    

    which is basically the exact same thing.

    Simply copying in the example script has given me the scale, however I don't understand how to include or adapt the rest of the coding on the page

    In your previous post the first block is python code and will be executed just fine. The second block (starting from the line that throws the error), is not python code.It actually is only part of the website layout describing the functionality of a rating scale. So delete it from your script, and work with the python code that you have.

    Good luck,

    Eduard

    Buy Me A Coffee

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