Adding assesment for multiple options

More
9 months 4 weeks ago - 9 months 4 weeks ago #213777 by maagik
Hello,

I'm able to add Assessment values to single option questions, however can't see the "Assessment value" for multi option answers, there is only "Relevance equation". How can I define proper answers to multiple choice question? I've checked the "How question types are evaluated" section here: manual.limesurvey.org/Assessments, but I'm still stupid
Last edit: 9 months 4 weeks ago by maagik. Reason: typo

Please Log in to join the conversation.

More
9 months 4 weeks ago #213784 by DenisChenu
In advanced settings / Logic part

 

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.
Attachments:
The following user(s) said Thank You: maagik

Please Log in to join the conversation.

More
9 months 4 weeks ago - 9 months 4 weeks ago #213786 by Joffm
Hi,
in "Logic" you can set the assessment value for each question.

If you want to have different values for each subquestion you have to use equations.

You did not say, what you want to use it for.
Here two examples to calculate the sum of selected subquestions.

Assuming you have 4 subquestions and want to set the assessment values like
Subquestion 1: 5
Subquestion 2: 1
Subquestion 3: 7
Subquestion 4: 22

First the "long" easy to understand version:
You use the IF-statement:
{sum(
IF(Q1_SQ001=="Y",5,0),
IF(Q1_SQ002=="Y",1,0),
IF(Q1_SQ003=="Y",7,0),
IF(Q1_SQ004=="Y",22,0)
)}


Here without the IF (knowing that a TRUE term is evaluated as "1")
​​​​​{sum(
intval(Q1_SQ001.NAOK=="Y") *5,
intval(Q1_SQ002.NAOK=="Y") *1,
intval(Q1_SQ003.NAOK=="Y") *7,
intval(Q1_SQ004.NAOK=="Y") *22
)}


Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 9 months 4 weeks ago by Joffm.
The following user(s) said Thank You: DenisChenu, maagik

Please Log in to join the conversation.

More
9 months 4 weeks ago #213789 by maagik
Thank you very much for the answer! I'm on Version 3.25.18+210316 and can't find "Advanced" nor "Logic" (there is only "Check Logic" with similar name). Where should I look for this setting?

Please Log in to join the conversation.

More
9 months 4 weeks ago #213794 by DenisChenu
??????????????????????????
 

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.
Attachments:
The following user(s) said Thank You: maagik

Please Log in to join the conversation.

More
9 months 4 weeks ago - 9 months 4 weeks ago #213795 by maagik
Aaaargh! Time to put brown paper bag on my head...
Thank you very much Denis!
Last edit: 9 months 4 weeks ago by maagik. Reason: typo

Please Log in to join the conversation.

More
1 month 1 week ago #222789 by gmaison
Hi Joffm,

Here without the IF (knowing that a TRUE term is evaluated as "1")
​​​​​{sum(
intval(Q1_SQ001.NAOK=="Y") *5,
intval(Q1_SQ002.NAOK=="Y") *1,
intval(Q1_SQ003.NAOK=="Y") *7,
intval(Q1_SQ004.NAOK=="Y") *22
)}

i'm actually using the latests version ( Version 5.2.5+211207 ) and when i look at the options, especially in the "Logic" section nor in any other section, i don't see the "relevance equation" shown by @DenisChenu in his answer...
Or, i'm actually building an assessment where i need to use multiple options ...

Could you provide me some hint on where to use your formula in order to validate the correct answer to multiple options answers ?

Thanks in advance,

Best regards,

Guillaume
 

Please Log in to join the conversation.

More
1 month 1 week ago #222795 by Joffm
It's called "condition" now.

But I do not see how your question is related to this thread.

Joffm


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

Please Log in to join the conversation.

More
1 month 1 week ago #222796 by gmaison
Thanks for you answer :)

the link is that i have a multiple choice question and 2 out of 4 answers are correct for the question to be fully answered.
So i give points to each good answer and 0 for each bad one ...

That makes my question is correctly answered if the result is 10 points (5 for each good answer) and half correctly if the user checked only 1 good answer.

My point is to make that calculation that can then be sumed at the end ...

Please Log in to join the conversation.

More
1 month 1 week ago - 1 month 1 week ago #222806 by Joffm
I know,
but the field you were asking for is do define if a question is displayed or not.

In my opinion you are looking for a question of type equation with something like (assuming SQ001 and SQ003 are "good" answers)
sum(if(Q1_SQ001=="Y",5,0),if(Q1_SQ003=="Y",5,0))}

Or if you only want to show this value you may put it into a question of type "text display" or in the end message.-

Joffm

And please, do not double post.
You asked this in the French part, too.

So use ExpressionScript, calculate your final value in a question of type "equation" like
Qx = single questions
Mx = multiple questions

{sum(if(Q1.NAOK==2,1,0),if(M1_SQ001.NAOK=="Y",5,0),if(M1_SQ004.NAOK=="Y",5,0),if(Q3.NAOK==7,2,0))}

And you may send your survey as lss export.
So we see better and can show you the solution.


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 1 month 1 week ago by Joffm.

Please Log in to join the conversation.

More
1 month 1 week ago #222819 by gmaison

So use ExpressionScript, calculate your final value in a question of type "equation" like
Qx = single questions
Mx = multiple questions

{sum(if(Q1.NAOK==2,1,0),if(M1_SQ001.NAOK=="Y",5,0),if(M1_SQ004.NAOK=="Y",5,0),if(Q3.NAOK==7,2,0))}

with a question of type "Equation" (and hidden), it works perfectly and i'm able to retrieve its value in the End Message.
Thanks a lot for your help Joffm.

Best regards,

Guillaume 
PS : i'll pay attention next time to post in one group. I'm going to put a link to this message as a solution in my french post. sorry for the inconvenience.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now