Question with combinations of 2 or more variable

More
4 months 3 weeks ago - 4 months 3 weeks ago #170415 by voriksu
voriksu created the topic: Question with combinations of 2 or more variable
Hi, I want to ask a question in a questionnaire, e.g. "Do you like X cooked using Y?" and the respondent simply answer Yes or No. X and Y are variable, and each of them has five options, e.g. X has {Poultry, Beef, Lamb, Fish, Vegetable} and Y has {Fry, Soup, Bake, Marinate, Sauce}. Participants will be shown a random combination of X and Y, e.g. "Do you like 'Poultry' cooked using 'Soup'?"

I'm aware of the following options 1 , 2 , 3 . But in this case, there are 25 possible combinations.

How do I display a random combination of X and Y variables?
Last Edit: 4 months 3 weeks ago by voriksu.

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #170422 by urbana
urbana replied the topic: Question with combinations of 2 or more variable
If you only have 25 possible combinations you should consider just adding these 25 questions. That's not much and it makes your life very much easier when it comes to analyzing the results.

And then display the questions randomly or what every logic applies.
The following user(s) said Thank You: LouisGac

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #170463 by voriksu
voriksu replied the topic: Question with combinations of 2 or more variable
Thanks. What if I have 5 variables and there are >100 possible combinations? How should I approach that?

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #170469 by urbana
urbana replied the topic: Question with combinations of 2 or more variable
If it has to be dynamically than I would suggest a logic based on JavaScript:
- the question which is displayed to the users
- before the question a hidden question with two short text fields

Via JavaScript you choose from an array two variables randomly and write them I to the hidden text Fields.

In the actual question you use INSERTANS to show the randomly chosen variables in the question.

With this way you have in the CSV file two columns in front of you question which show you what the user has answered

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!