Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Stated choice experiments from previously answered questions

  • willykriswardhana
  • willykriswardhana's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 days 6 hours ago - 6 days 6 hours ago #267652 by willykriswardhana
[object Object] Please help us help you and fill where relevant:
LimeSurvey version: 6.6.7
Own server or LimeSurvey Cloud: 
Survey theme/template: Fruity
==================
Hello,

I am exploring the possibility of conducting a stated choice experiment, where the attribute levels provided to participants are based on previously answered questions. 
For example,
Respondent A: 
Mode: Car
Q1 - Travel time (TT actual): 30 minutes
Q2 - Travel cost (TC actual): 5 euros

Then, in the stated choice experiments, Respondent A will be provided with choices, of which the levels of attributes are pivoted around their actual travel time and travel cost:

image attached.

Your help will be greatly appreciated. 

Thank you!
Last edit: 6 days 6 hours ago by willykriswardhana.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 days 1 hour ago #267658 by Joffm
Hi,
what is your question?
How to display this in a good looking manner?
There are several examples here.
Here the "grandfather", the "banana - apple" example.
 

Or is the question how to calculate the values

Respondent A will be provided with choices, of which the levels of attributes are pivoted around their actual travel time and travel cost:

This you can do with ExpressionmScript.
But you should explain your idea, your algorithm a bit more detailled.
How many choices will be displayed to one respondent, etc.

Joffm
 

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

Please Log in to join the conversation.

  • willykriswardhana
  • willykriswardhana's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 days 11 hours ago - 5 days 11 hours ago #267664 by willykriswardhana
Replied by willykriswardhana on topic Stated choice experiments from previously answered questions
Hallo Joff,

Thank you so much for your answers. Indeed, my post was not clear enough. 
So, I have 3 alternatives, 2 attributes, and 3 levels for each attribute (image attached: Attribute levels).
 

The randomization would be 3 blocks, with 6 questions for each block.

For example, if:
Respondent A: 
Mode: Car
Q1 - Travel time (TT actual): 30 minutes
Q2 - Travel cost (TC actual): 5 euros

Then for the first choice task, he will be displayed with this task: (image attached: B1Q1)
 

However, I want the Travel time and Travel cost to be automatically calculated based on the actual Travel time and Travel Cost, like this: (image attached: B1Q1_2)
 

I attached the example of the survey (.lss). As this is only a trial and error, I did not attach the complete choice tasks. 
Also, I have no idea why the radio button for the choices does not appear 

Is it possible to do it in LimeSurvey?

Thanks so much. 
 
Last edit: 5 days 11 hours ago by willykriswardhana.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 days 8 hours ago #267673 by Joffm
So, in total there are 729 different ways to display.
From
TTC1, TTP1, TTB1, TCC1, TCP1, TCB1
TTC1, TTP1, TTB1, TCC1, TCP1, TCB2
TTC1, TTP1, TTB1, TCC1, TCP1, TCB3
TTC1, TTP1, TTB1, TCC1, TCP2, TCB1
...
to
TTC3, TTP3, TTB3, TCC3, TCP3, TCB2
TTC3, TTP3, TTB3, TCC3, TCP3, TCB3

with
TT: Travel Time
TC: Travel Cost

C: Car
P: Public transport
B: Bike

1: first factor
2: second factor
3: third factor

Did you create a model with your analyzing tool?
Or do you just want to display randomly?
In case of "randomly" I should say:
  1. Create a "container", a question of type "huge text". Lets call it "QPool"
    Here you store all 729 options (maybe like this):
    #001:075100100075070070
    #002:075100100075070085
    ...
    #729:125130145125100100

    where the first is the representation of this first option
     
    and the second of this
     
  2. Create 6 random numbers from 1-729 (I understood you want to show this question sex times)
    To be sure you get different numbers, use the javascript solution and leftpad the number to a length of 3
  3. Grab the line that refers to the first random number with string functions "strpos()" and "substr()".
    You see you get the entire line with (QLine)
    {substr(QPool,strpos(QPool,'#'+randnum_1+':')+5,18)}
  4. Enter the respective factors into your question, again with function "substr()"
    {substr(QLine,0,3)}
    {substr(QLine,3,3)}
    ...
Well, it's a rough idea, which will work, but it depends on your idea of the conjoint model.

Also, I have no idea why the radio button for the choices does not appear

You use a question of type "long text". How do you expect radio buttons?
Should be a question of type "array".

Joffm

 

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

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 days 8 hours ago - 2 days 8 hours ago #267719 by Joffm
Reading everything again I may have misunderstood your issue.

You only wanted to display the calculated times and costs, didn't you
In your sample survey you did not use ExpressionScript.
Your calculations have to be surrounded by curly brackets
 

 
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 days 8 hours ago by Joffm.

Please Log in to join the conversation.

  • willykriswardhana
  • willykriswardhana's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 day 11 hours ago #267728 by willykriswardhana
Replied by willykriswardhana on topic Stated choice experiments from previously answered questions
Hello Joff,

That is exactly what I meant. Now it perfectly works. 

Thank you very much! I really appreciate it. 

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose