- Posts: 37
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Ultimatum Game with faces
- midnightking
- Topic Author
- Offline
- Junior Member
Less
More
3 years 6 months ago #205750
by midnightking
Ultimatum Game with faces was created by midnightking
My colleagues and I are trying to create an Ultimatum task, similar to the one in that
sci-hub.se/https://doi.org/10.1093/brain/awv315paper
, wherein for each trial a face of a different category flashes before a financial offer is presented to a participant. Both the offers and face must be random, but the sequence ( face followed by offer followed by participant answer) must remain the same. We should be able to know which face preceded the offers.
Is there a script or some other way to achieve this ?
Is there a script or some other way to achieve this ?
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12790
- Thank you received: 3940
3 years 6 months ago #205751
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Ultimatum Game with faces
Well, shouldn't be too harfd.
But you have to explain:
You say faces and offers are at random.
Faces, no problem.
But offers? Are there fixed offers, that are displayed randomly?
Or - as I saw in your link (which nobody will read) - is each offer independent and only distributes $10 randomly?
So, if you create groups with one face and one offer, you display randomly by "group randomization name" and the offer e.g. by random number(s) and microtayloring.
But depends on your explanation and hopefully a sample as lss export.
Joffm
But you have to explain:
You say faces and offers are at random.
Faces, no problem.
But offers? Are there fixed offers, that are displayed randomly?
Or - as I saw in your link (which nobody will read) - is each offer independent and only distributes $10 randomly?
So, if you create groups with one face and one offer, you display randomly by "group randomization name" and the offer e.g. by random number(s) and microtayloring.
But depends on your explanation and hopefully a sample as lss export.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
3 years 6 months ago #205763
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Ultimatum Game with faces
True :+1:Joffm wrote: (which nobody will read)
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12790
- Thank you received: 3940
3 years 6 months ago #205796
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Ultimatum Game with faces
Well, here an idea
1. For each face create a group (all groups get the same "group randomization name")
2. In each group create a question of type equation where you generate a random number between 5 and 9
E.g.: {if(is_empty(G1rand),rand(5,9),G1rand)}
3. Create a question of type list(radio) or "Yes/No" with this question text (source code mode) and adapted to names, explanation and random number.
As you see the first div, the image, is shown for 4,5 seconds, everything else is hidden.
The the image is hidden and the second div, the explanation ("Alice lost her job"), is shown for 3,5 seconds.
And at last this explanation is hidden and the third div, the question, and the answer container and the next button are shown.
And the result you may display in a next question of type "text display".
Nevertheless, you should show us a bit more than the article.
Joffm
1. For each face create a group (all groups get the same "group randomization name")
2. In each group create a question of type equation where you generate a random number between 5 and 9
E.g.: {if(is_empty(G1rand),rand(5,9),G1rand)}
3. Create a question of type list(radio) or "Yes/No" with this question text (source code mode) and adapted to names, explanation and random number.
Code:
<div id="d1"><img alt="" src="/limesurvey/upload/surveys/123456/images/Face001.jpg" /></div> <div id="d2">Alice has lost her job</div> <div id="d3">Alice gets ${G1rand}, you get ${10-G1rand} <p> </p> Do you accept or reject?</div> <script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $('#ls-button-submit').hide(); $("#d2").hide(); $("#d3").hide(); $(".answer-container").hide(); setTimeout(function () { $('#d1').hide(); $('#d2').show(); }, 4500); setTimeout(function () { $('#d2').hide(); $('#d3').show(); $(".answer-container").show(); $('#ls-button-submit').show(); }, 8000); }); </script>
The the image is hidden and the second div, the explanation ("Alice lost her job"), is shown for 3,5 seconds.
And at last this explanation is hidden and the third div, the question, and the answer container and the next button are shown.
And the result you may display in a next question of type "text display".
Nevertheless, you should show us a bit more than the article.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- midnightking
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 37
- Thank you received: 0
3 years 5 months ago #205909
by midnightking
Replied by midnightking on topic Ultimatum Game with faces
Sorry, for the late reply and thank you. The offers are fixed.
Is there a way to do it in a single group?
I have posted the lss file for and the lsg file for the UG group below,
Is there a way to do it in a single group?
I have posted the lss file for and the lsg file for the UG group below,
The topic has been locked.
- midnightking
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 37
- Thank you received: 0
3 years 5 months ago #205910
by midnightking
Replied by midnightking on topic Ultimatum Game with faces
The topic has been locked.