Welcome to the LimeSurvey Community Forum

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

Dual Matrix with Exclusive Answer

  • miguel-reyes
  • miguel-reyes's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 11 months ago - 3 years 11 months ago #197389 by miguel-reyes
Dual Matrix with Exclusive Answer was created by miguel-reyes
Hi everybody!

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
Last edit: 3 years 11 months ago by miguel-reyes.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #197390 by Joffm
Replied by Joffm on topic Dual Matrix with Exclusive Answer
Hi,
sorry, WHAT do you want to achieve?

That means that if any of the radio buttons is clicked on, the selection changes to the last radio button clicked

Which way is it to work?
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
The topic has been locked.
  • miguel-reyes
  • miguel-reyes's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 11 months ago - 3 years 11 months ago #197397 by miguel-reyes
Replied by miguel-reyes on topic Dual Matrix with Exclusive Answer
Hi Joffm,

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.
Last edit: 3 years 11 months ago by miguel-reyes.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #197398 by Joffm
Replied by Joffm on topic Dual Matrix with Exclusive Answer
Hi,
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
The following user(s) said Thank You: miguel-reyes
The topic has been locked.
More
3 years 11 months ago #197578 by ymca
Replied by ymca on topic Dual Matrix with Exclusive Answer

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+
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #197582 by holch
Replied by holch on topic Dual Matrix with Exclusive Answer
You can adapt your answer codes in dual matrix as well.

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

The following user(s) said Thank You: ymca
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #197584 by Joffm
Replied by Joffm on topic Dual Matrix with Exclusive Answer

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
The following user(s) said Thank You: ymca
The topic has been locked.
More
3 years 11 months ago #197586 by ymca
Replied by ymca on topic Dual Matrix with Exclusive Answer

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

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.

Thanks Joffm.

LS Version 4.2+
The topic has been locked.
More
3 years 11 months ago #197628 by ymca
Replied by ymca on topic Dual Matrix with Exclusive Answer

Joffm wrote:

Is "numerical codes" suited only for "Dual Matrix" or also for "Array (F)"?


For answer options? In my opinion : Always.

Joffm

I want to be certain so I'll know if to change or not.
You mean better to have it just for Array answers or every question type (in their answer)?

LS Version 4.2+
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #197631 by Joffm
Replied by Joffm on topic Dual Matrix with Exclusive Answer
Hi,

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
The following user(s) said Thank You: ymca
The topic has been locked.
More
3 years 11 months ago - 3 years 11 months ago #197833 by ymca
Replied by ymca on topic Dual Matrix with Exclusive Answer
At last found the place to change the default creation of the numbers.
My account > My personal settings

For answer options? In my opinion : Always.

Joffm

So now I need to change all the answers from all the questions to numbers.
Also change the codes of the countries I have, to numbers?

LS Version 4.2+
Last edit: 3 years 11 months ago by ymca.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago - 3 years 11 months ago #197834 by holch
Replied by holch on topic Dual Matrix with Exclusive Answer
The countries don't need it. Because you won't calculate with those codes, will you?

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.

Last edit: 3 years 11 months ago by holch.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose