- Posts: 4
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Dual Matrix with Exclusive Answer
- miguel-reyes
- Topic Author
- Offline
- New Member
I am working on my master thesis and need to set up a survey for people selecting a song for a playlist.
I am using a dual matrix question type and all works perfect but I need the second column to be exclusive. That means that if any of the radio buttons is clicked on, the selection changes to the last radio button clicked. I am sure this is very easy to implement with JavaScript but I am still not so sure on how to do it.
Could somebody please help me?
Greetings from Berlin and stay healthy!
Miguel
- Joffm
- Offline
- LimeSurvey Community Team
- Posts: 12785
- Thank you received: 3940
sorry, WHAT do you want to achieve?
Which way is it to work?That means that if any of the radio buttons is clicked on, the selection changes to the last radio button clicked
If the respondent clicks the first scale, something happens in the second? Or viceversa?
And your "help" text is really confusing.
Joffm
P.S.
Do not attach lsq nor lsg exports; always lss.
lsq and lsg are language sensitive.
So you can import them only in a survey with the same base language.
Meaning: We have to create a survey - hopefully with the same base language as your export, and them import it.
Furthermore, these exports don't contain the general settings of the survey, which also might be important.
Best, copy your survey, remove all not relevant questions, and attach this lss export.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
- miguel-reyes
- Topic Author
- Offline
- New Member
- Posts: 4
- Thank you received: 0
Thanks for the fast response. I need the second array ("Selected for playlist") to be exclusive. This means that the radio button of only one song can be selected for the option "yes". The behaviour of the first array question does not change.
I have now found a way to make it exclusive and I've included the .lss file to this post.
Due to the fact that I've set the question to mandatory I had to add another answer ("No") to the second array. I now have the problem that the user has to select "No" for each of the presented songs. Now that I have your attention, do you know how can I have the last column of the second array with "No" preselected (second array, last column)?
Thank you so much and wish you a nice Sunday
P.S. Thank you for the comment on the help text. I have rewritten it and hope it is now clearer.
- Joffm
- Offline
- LimeSurvey Community Team
- Posts: 12785
- Thank you received: 3940
yes, that's the way to use an array (dual scale) correctly.
I wanted to mention it before, but wasn't really sure about your aim.
I thought there might be some more conditions.
And I appreciate that you tried to find something and finally found a solution.
You may preselect by a hidden equation before this question,
Something like
{r631q0_SQ001_1="A7"}
{r631q0_SQ002_1="A7"}
{r631q0_SQ003_1="A7"}
...
Joffm
And another hint:
The first scale is obviously not a nominal scale, but at least ordinal.
And I assume that you will do some statistic tests like t-Test, F-Test, ANOVA, etc.
And here you need numerical codes.
If you do not change your "A1", "A2",... you will get string variables with alphanumerical codes.
So you will have to recode all.
Better to use codes tat are needed in your later analysis.
All the best
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
- ymca
- Offline
- Elite Member
- Posts: 168
- Thank you received: 2
Joffm wrote: Hi,
yes, that's the way to use an array (dual scale) correctly.
Joffm
And another hint:
The first scale is obviously not a nominal scale, but at least ordinal.
And I assume that you will do some statistic tests like t-Test, F-Test, ANOVA, etc.
And here you need numerical codes.
If you do not change your "A1", "A2",... you will get string variables with alphanumerical codes.
So you will have to recode all.
Better to use codes tat are needed in your later analysis.
Joffm
Is "numerical codes" suited only for "Dual Matrix" or also for "Array (F)"?
LS Version 4.2+
- holch
- Offline
- LimeSurvey Community Team
- Posts: 11756
- Thank you received: 2753
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
- Joffm
- Offline
- LimeSurvey Community Team
- Posts: 12785
- Thank you received: 3940
Is "numerical codes" suited only for "Dual Matrix" or also for "Array (F)"?
For answer options? In my opinion : Always.
The answer options of an array mostly are ordered like a scale.
So later you want to do some statistical tests.
With alphanumerical codes you are limited to tests for nominal scales, like CHI2
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
- ymca
- Offline
- Elite Member
- Posts: 168
- Thank you received: 2
I'm so clueless on this subject, so I better change it to numbers if in the future I'll have a need for that.Joffm wrote:
Is "numerical codes" suited only for "Dual Matrix" or also for "Array (F)"?
For answer options? In my opinion : Always.
The answer options of an array mostly are ordered like a scale.
So later you want to do some statistical tests.
With alphanumerical codes you are limited to tests for nominal scales, like CHI2
Joffm
Thanks Joffm.
LS Version 4.2+
- ymca
- Offline
- Elite Member
- Posts: 168
- Thank you received: 2
I want to be certain so I'll know if to change or not.Joffm wrote:
Is "numerical codes" suited only for "Dual Matrix" or also for "Array (F)"?
For answer options? In my opinion : Always.
Joffm
You mean better to have it just for Array answers or every question type (in their answer)?
LS Version 4.2+
- Joffm
- Offline
- LimeSurvey Community Team
- Posts: 12785
- Thank you received: 3940
you can do whatever you want.
Codes are up to you. And there will be no impact on LimeSurvey.
But you might get in trouble if you want to do some statistic calculations later. Even the basics, like mean, median, std.deviation will fail, if you use alphanumerical codes.
Especially arrays usually have some kind of scale as answer options; you want to compare the different items, resp. subquestions. And here you need numeric codes, to be able to calculate a t-Test or a correlation or, or ...
Or can you tell me, what is the mean of "A1" and "A4"?
With alphanumeric codes, which are exported to SPSS as string variables (just do it and have a look), you may calculate "frequencies", "CHI2", tests that only need nominal level.
But to repeat: It's absolutely up to you.
If you use the "A1", "A2",... and later you find out, that you need numerical codes, you always may recode it in your statistic tool.
But it's unnecessary work.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
- ymca
- Offline
- Elite Member
- Posts: 168
- Thank you received: 2
My account > My personal settings
So now I need to change all the answers from all the questions to numbers.For answer options? In my opinion : Always.
Joffm
Also change the codes of the countries I have, to numbers?
LS Version 4.2+
- holch
- Offline
- LimeSurvey Community Team
- Posts: 11756
- Thank you received: 2753
1 Germany
2 France
3 Portugal
It
So if you have 2x Germany, 2x Portugal the mean value is 2, but of course the result is not "France", right? It's because this is a nominal scale.
So with all questions that you might want to calculate a mean value or something similar, you should use numbers. If you have a scale that is similar to a 1-3, 1-4, 1-5, 1-7, 1-10 scale, even if you use words instead of numbers, you used have numerical codes.
Definitely everything that is on a ordinal, interval or ratio scale. With nominal scales you can use numerical, but it is not necessary, you will probably not calculate with it, only count the frequency and that you can do with any code.
What you won't do is to have 5 male (1) and 10 female (2) and then calculate a mean value of 1,6667 here. It does not give you any real information. Just like with the countries.
www.mymarketresearchmethods.com/types-of...inal-interval-ratio/
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.