# recode (umpolen) directly in limesurvey

3 years 6 months ago #108243 by ang
ang created the topic: recode (umpolen) directly in limesurvey
Hi!

I'm trying to create a questionnaire. This works so far. Furthermore I wanted to have "tailored" answers depending on the participants choises of answering (the answer options are a matrix: 5=very true until 0=absolutely not true. And the tailored answer will refer to the participant's global result). This works as well. But there is a small problem: the answers of some questions should be count in the opposite way or be recoded before counting to the global result. e.g. I have 15 questions and question 3, 5 and 12 is poled vice versa. Meaning that at these three questions "5" means "0"; "4" means "2"; ... ; "0" means "5".

So, is there any way to get this recoding? And how?

I was trying and searching for quite a time and I could imagine that one possibility is to make each question as a questiongroup, so each question(group) can be coded unique. But I don't find this a "nice" option.

Thanks,
ang

3 years 6 months ago - 3 years 6 months ago #108252 by Ben_V
Ben_V replied the topic: recode (umpolen) directly in limesurvey
Use an equation question to compute the score...

For example if:
• QQ is the code of your array question
• sq1 & sq2 the codes of your "normal" scored subquestions
• sq3 & sq4 the codes of your reverse-scored subquestions
Your equation will be something like:
`{sum(QQ_sq1.value,QQ_sq2.value,(5-QQ_sq3.value),(5-QQ_sq4.value))}`
.

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Last Edit: 3 years 6 months ago by Ben_V.
The following user(s) said Thank You: ang

3 years 6 months ago #108253 by ang
ang replied the topic: recode (umpolen) directly in limesurvey
That's great! Thanks!

There is only one thing left: now the sum-score is displayed at the question which is scored vice versa. Allways changing correcty when answering. But the participant shouldn't see the score...

Do you know if there is something to not have the score seen?

Thanks!
ang

3 years 6 months ago #108254 by Ben_V
Ben_V replied the topic: recode (umpolen) directly in limesurvey
"Hide this question" in the advanced settings of the equation question...
Note that you can place this question where you wan't in your survey, at the end for example, included in a different group (if relevant)...

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The following user(s) said Thank You: ang