Choice experiment: Randomly select one choice

More
2 months 18 hours ago #215231 by s_sinning
Hello, 

I am currently programming a choice experiment on LimeSurvey. After being randomly assigned to 4 different experimental groups, participants have to choose twelve times between 2 options (or the option "None of the options") and then finish with a questionnaire. The choices differ for the different experimental groups but the questionnaire is the same for all participants. For the different choices I used List (radio) and inserted two different pictures of items including a short description (the description is on the picture for now but I could also insert the info directly into the choice-question).
Now, I would like to randomly select one of their choices at the end of the experiment (after they finished the questionnaire) and to display it as a kind of 'payoff' to them. (Taking all groups and answer options together there will be 192 potential 'payoffs'). 

Is there a way to do this in LimeSurvey? 

If so, would it also be possible to integrate a formula that calculates fixed initial endowment- price of randomly selected choice and to display it to participants? 

I am very grateful for any help! 

Please Log in to join the conversation.

More
2 months 16 hours ago #215237 by Joffm
Hi,
yes, both is possible.
But please send your survey as lss export.
To be honest: I have no time to create a survey by myself with your scenario.

And don't forget to mention which version of LimeSurvey you are using.

Joffm
 


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: s_sinning

Please Log in to join the conversation.

More
2 months 15 hours ago #215242 by s_sinning
First of all, thank you very much for the quick reply.
I attached the required file, however, since I am still in the process of creating the survey, I have only included 2/12 examples for each experimental group. I hope that this is enough to show the intuition. Otherwise, I could sent you the finished version later today, too. 
Attachments:

Please Log in to join the conversation.

More
2 months 13 hours ago #215247 by s_sinning
The version is: Version 2.58.0+170104

Please Log in to join the conversation.

More
2 months 9 hours ago #215268 by holch
You noticed that your version of Limesurvey is more than 4 years old and thus has not received any updates or bug fixes for the same amount of time?

I would highly recommend an update to the latest stable version of Limesurvey, which currently is LS 3.x.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

More
2 months 6 hours ago #215281 by Joffm
Here is an example.
 

File Attachment:

File Name: limesurvey... (1).lss
File Size:111 KB


Study the group "GChoice"
You have to extend the equation in question "AChoice"
The other two are always valid.

You have to  rename your images A1_1 -> A01_1, ...
This is to have always 5 characters, the last image is A12_2 :
 

Some other things.
I renamed the answer options to 1,2,9, resp. 1,2,3,4,9
If your a bit confusing way to code doesn't have a very special reason, this is better in my opinion.

It is better to generate a random number by {if(is_empty(random),rand(1,4),random)}
This way you avoid that a random number changes during the survey.

Why do you have such a lot of brackets around your relevance equation "((random==2))". Not necessary.

And why did you enter a relevance equation of "4" in this first question.
This is not false. Each number >0 is TRUE, while 0 is FALSE.

And you talked about two options per question.
But there are three and sometimes five. That made it more difficult.

Joffm

And of course, as @holch, You really should consider an update.


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:

Please Log in to join the conversation.

More
1 month 4 weeks ago #215297 by s_sinning
Dear Joffm,

Thank you so much for taking the time to go through my survey. Your changes helped a lot and I will definitely implement your advice!

I would say that I understand most of the code you wrote in "GChoice" and I think that I know what I will have to add (for the options that are still missing), but despite renaming the pictures, I get the message "image_eqChoice.jpg" rather than seeing the picture? Do I have to upload them somewhere else additionally? Or is there any other step I am missing?

Regarding the version: Unfortunately it is my university that provides access to LimeSurvey and thus, I do not have the rights to update the version on my own but I already contacted the people in charge.

Thank you in advance!

Please Log in to join the conversation.

More
1 month 4 weeks ago - 1 month 4 weeks ago #215302 by Joffm
Hi,
either you missed to add the curly brackets or something else.

What do you see, if you do not hide "AChoice", "eqRand" and "eqChoice"?

What can we say without seeing what you did?
So always send the lss of your prototype, that we may see your mistake.

Joffm

By the way:
image_{eqChoice}.jpg was a suggestion.
You called your images only "A12_1.png"
So this should be adapted to {eqChoice}.png

 


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 1 month 4 weeks ago by Joffm.

Please Log in to join the conversation.

More
1 month 4 weeks ago #215314 by s_sinning
I sticked to what you did. The mechanism seems to work but the name of the image is shown rather than the image itself. 
Attachments:

Please Log in to join the conversation.

More
1 month 4 weeks ago #215317 by Joffm
After a few hours I found it.
The display of the picture must not be in the same group.

Later I will send an example.

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: s_sinning

Please Log in to join the conversation.

More
1 month 4 weeks ago #215322 by Joffm
And here the example.

 

File Attachment:

File Name: limesurvey...6425.lss
File Size:109 KB


Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The following user(s) said Thank You: s_sinning

Please Log in to join the conversation.

More
1 month 4 weeks ago #215342 by s_sinning
I really appreciate that you took so much time. However, I am afraid that using your doc (and having uploaded the pictures with the corresponding names again, of course) I still cannot see the picture (I attached a screen-shot of the message I get). Since the random mechanism seems to function well I was wondering whether I might be able to describe the picture for each option, so that participants are shown a text describing the info on the picture rather than the picture itself? So for example, if answer option 1 was chosen for the first question -> they see message X, when option 2 was chosen for the first question they see text Y and so on. How would I have to adapt the code in this case?

Thank you so much!
Attachments:

Please Log in to join the conversation.

More
1 month 4 weeks ago #215343 by Joffm
Send your lss export


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

More
1 month 4 weeks ago #215344 by s_sinning
It's basically the one that you sent back to me. 
Attachments:

Please Log in to join the conversation.

More
1 month 4 weeks ago #215346 by Joffm
Hm, you copied something, didn't you; but not the sourcecode.

Your sourcecode looks like this
<p><img alt="&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;" src="/survey/upload/surveys/%7BSID%7D/images/%7BeqChoice%7D.jpg" /></p>
{eqChoice}.png" />

Please, correct this to only
<img src="/survey/upload/surveys/{SID}/images/{eqChoice}.png" />

Instead of the placeholder {SID} (that is the surveyID) you can enter your actual surveyID directly.

Joffm
 


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: s_sinning

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now