- Posts: 3
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Adding assesment for multiple options
- maagik
- Topic Author
- Offline
- New Member
Less
More
3 years 4 weeks ago - 3 years 4 weeks ago #213777
by maagik
Adding assesment for multiple options was created 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
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: 3 years 4 weeks ago by maagik. Reason: typo
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
3 years 4 weeks ago #213784
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.
Replied by DenisChenu on topic Adding assesment for multiple options
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.
The following user(s) said Thank You: maagik
The topic has been locked.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12886
- Thank you received: 3965
3 years 4 weeks ago - 3 years 4 weeks ago #213786
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Adding assesment for multiple options
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
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: 3 years 4 weeks ago by Joffm.
The following user(s) said Thank You: DenisChenu, maagik
The topic has been locked.
- maagik
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
3 years 4 weeks ago #213789
by maagik
Replied by maagik on topic Adding assesment for multiple options
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?
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
3 years 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.
Replied by DenisChenu on topic Adding assesment for multiple options
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.
The following user(s) said Thank You: maagik
The topic has been locked.
- maagik
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
3 years 4 weeks ago - 3 years 4 weeks ago #213795
by maagik
Replied by maagik on topic Adding assesment for multiple options
Aaaargh! Time to put brown paper bag on my head...
Thank you very much Denis!
Thank you very much Denis!
Last edit: 3 years 4 weeks ago by maagik. Reason: typo
The topic has been locked.
- gmaison
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 1
2 years 4 months ago #222789
by gmaison
Replied by gmaison on topic Adding assesment for multiple options
Hi Joffm,
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
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...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
)}
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
The topic has been locked.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12886
- Thank you received: 3965
2 years 4 months ago #222795
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Adding assesment for multiple options
It's called "condition" now.
But I do not see how your question is related to this thread.
Joffm
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
The topic has been locked.
- gmaison
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 1
2 years 4 months ago #222796
by gmaison
Replied by gmaison on topic Adding assesment for multiple options
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 ...
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 ...
The topic has been locked.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12886
- Thank you received: 3965
2 years 4 months ago - 2 years 4 months ago #222806
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Adding assesment for multiple options
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.
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: 2 years 4 months ago by Joffm.
The topic has been locked.
- gmaison
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 1
2 years 4 months ago #222819
by gmaison
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.
Replied by gmaison on topic Adding assesment for multiple options
with a question of type "Equation" (and hidden), it works perfectly and i'm able to retrieve its value in the End Message.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))}
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.
The topic has been locked.