Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Generating "Score" From 100+ Question Survey

Generating "Score" From 100+ Question Survey 2 years 5 months ago #73704

I am building a 50 question test using LimeSurvey, containing 10 different categories (5 questions each). Each question has 3 possible answers, including the "other" option.

Here's my issue: I am trying to figure out how I can take each answer and give it a "score" that will add up to a final test "score" that users can see. This final score will be a number between 1 and 100. Users start the test with a base score of 50. Some choices will give a (+1), some will give a (-1), and then I have the "other" option which will give a (0). The final score is determined by the adding and subtracting of these point values.

Any easy way to do this sort of logic?
The administrator has disabled public write access.

Re: Generating "Score" From 100+ Question Survey 2 years 5 months ago #73708

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
See the documentation for Expression Manager and the HowTo examples.

Although you could create a single expression that has all 100 variables, I'd recommend breaking it up. So, since you have 10 categories, you could create a hidden Equation question for each category to create the category-specific score. Say your variables names are named by category (A-J) and question within category (1-3) - so A1-A3, B1-B3, ... J1-J3. Then, scale-scores would be like this (where let's call the category score Xscore where X is the category.). So Ascore would be:
sum(A1.NAOK,A2.NAOK,A3.NAOK)

Then, the total score would be the sum of each of the category scores (plus your starting score of 50).
sum(50,Ascore.NAOK,Bscore.NAOK,...,Jscore.NAOK)

For your reports, you could show the final score (let's call it finalScore) as
Thanks for filling out our survey, {TOKEN:FIRSTNAME}.  Your final score was {finalScore}.

Incidentally, the reason for all the NAOK is in case you have conditions on your questions - the NAOK would let you compute the scores anyway. If conditions hid any of the parts of the sum and you didn't use .NAOK, then {finalScore} would always = 0.
Last Edit: 2 years 5 months ago by TMSWhite.
The administrator has disabled public write access.

Re: Generating "Score" From 100+ Question Survey 2 years 5 months ago #73714

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4049
  • Thank you received: 739
  • Karma: 341
If using 1.91+ or earlier, you will need to use a little JavaScript to calculate the score. Details of the script would depend on the survey structure how many questions per page, etc.).
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Generating "Score" From 100+ Question Survey 2 years 5 months ago #73752

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5300
  • Thank you received: 291
  • Karma: 247
At Limesurvey the according scoring feature is called "assessment", see docs.limesurvey.org/Assessments&structur...tions+for+LimeSurvey

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: Generating "Score" From 100+ Question Survey 2 years 5 months ago #73789

Thanks for the replies, guys.
I'm upgrading to 1.92 right now so I can take advantage of the Expression Manager. I'm excited to see how that will work. I'll keep you updated.
The administrator has disabled public write access.

Re: Generating "Score" From 100+ Question Survey 2 years 5 months ago #73796

Hey TMSWhite- could you possibly elaborate on the steps here? I've never used the EM, and am honestly still figuring out LimeSurvey. Would I put these expressions in questions set to not display? Where do I define, as in your example, "Ascore", etc.? I have all my cats/structure configured the way I want it...I just need to figure out how to apply this code to my categories and questions.
The administrator has disabled public write access.

Re: Generating "Score" From 100+ Question Survey 2 years 5 months ago #73873

Okay, more succinctly, where do I define the value of each answer choice? I.e. If a user answers A for one question, that would add a (+1) and if they chose B, it would add a (-1), and if they chose no answer it would add a (0)?
The administrator has disabled public write access.

Re: Generating "Score" From 100+ Question Survey 2 years 5 months ago #73881

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5300
  • Thank you received: 291
  • Karma: 247
Better use positive numbers only and afterwards do a X=SUM(a+b+c)-50.

Have a look at the assessment feature (not sure if EM accesses the assessment scores) and also set up according answer codes.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: Generating "Score" From 100+ Question Survey 2 years 5 months ago #74073

Alright...trying to figure out why this isn't working for me. I have Assessments enabled, and have given all answer choices the correct score (+1, -1, or 0). I have added hidden Equation questions at the end of each Question Group, summing up the scores from the questions. I have a separate group and a hidden question at the end of the quiz, summing up all Group total variables and adding them to 50.
First thing - the final score returned is always 50. The equations seem to be not giving weight to the individual questions...

Second thing - I named the final sum question "finalScore". Calling this in the results page (i.e. Your final score is {finalScore}.) does not return anything. It's blank.

Any insights?
The administrator has disabled public write access.

Re: Generating "Score" From 100+ Question Survey 2 years 5 months ago #74074

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
If you attach the survey, I can take a look. If the content is proprietary, send me a private message and I can give you contact information to email me a copy.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.288 seconds
Donation Image