Welcome to the LimeSurvey Community Forum

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

How to do a mode calculation

  • mnelson
  • mnelson's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 4 months ago - 2 years 4 months ago #222992 by mnelson
How to do a mode calculation was created by mnelson
Hi,
I have the below formula where I want to use mode function in my calculation.Unfortunately the mode function is not defined in lime survey.


 
Last edit: 2 years 4 months ago by mnelson.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 4 months ago #222993 by Joffm
Replied by Joffm on topic How to do a mode calculation
You really want to calculate the "mode" of a variable?
In this case I'd expect only one parameter, as the mode is the value that appears most often in a set of data values.
[url] en.wikipedia.org/wiki/Mode_(statistics) [/url]

But there are two parameters. Therefore I could imagine you want to calculate "modulo".
Well, it is not implemented in LimeSurvey. But you can use the floor(x,y) function
[url] manual.limesurvey.org/ExpressionScript_-...mplemented_functions [/url]

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: mnelson
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose