Show statistics to participant before they submit their answer

More
1 month 3 weeks ago - 1 month 3 weeks ago #187936 by ritapas
Hello,
is there a clean way to show the survey statistics to participants before they submit their answers?

(Yes, I think this will bias their answers.)

The only way I've found is showing the "statistics_user/action/surveyid/XXXXX/language/YY" inside an iframe but this is clumsy and not nice to see.

Thank you for any suggestion.
Rita
Last edit: 1 month 3 weeks ago by ritapas.

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
1 month 3 weeks ago #187942 by holch
I don't think that there is any other way to show the public statistics page in another way than an iframe if it needs to be before they submit their answers.

nside an iframe but this is clumsy and not nice to see.


You can format iframes quite nicely, depending on what you need. But of course, this always is a question of personal taste.

You might be able to create your own "statistics" in a text display question, by using one of Denis' plugin called "getStatInSurvey" ( gitlab.com/SondagesPro/ExportAndStats/getStatInSurvey ). Disclaimer: I haven't used it myself so far, but from what I understood that it does, it might help you here. You will have to try yourself.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
The following user(s) said Thank You: ritapas

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago #187943 by ritapas
Thank you, I'll check ASAP.

I'm not sure but it looks like the plugin can do stats only on the present participant's answer.

Our intent, on the other hand, is something like:
- "Be the first to answer YES"
- "More than 100 friends said NO to this".

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago #187946 by holch
With Expression Manager you can only access the responses of the current respondent.

Denis' plugin is supposed to consults the database and give you information about the current results of a specific question. Otherwise the plugin would be unnecessary and creating mean values and % wouldn't make sense and calling it "statistics" either.

Allow to show some statictics from previous answers in survey in question text, help and answers.

I agree that this might be a little bit misleading. But I guess with "previous answers" is mean the answers of previous respondents.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
The following user(s) said Thank You: ritapas

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago #187961 by Joffm

Our intent, on the other hand, is something like:
- "Be the first to answer YES"
- "More than 100 friends said NO to this".


I can confirm that you may use the plugin to do this.


Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu, ritapas

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago #187965 by lfanfoni
Some time ago I did a survey where it was necessary to customize the questionnaire based on aggregate calculations on the answers already present.
I used quotas to trigger the condition on the aggregate data, and as an end action (reached limit), the autoload URL. This URL can be the same survey URL, parameterized so as to customize the questionnaire of the respondent that triggered the achievement of the quota.
If you place the request also in the Italian forum, I can try to give you some more suggestions

Aiutaci a far crescere la comunità italiana di LimeSurvey: vai sul forum Italiano per richieste e soluzioni citando sempre la versione usata, non scrivere in privato, suggerisci modifiche o nuove traduzioni - www.limesurvey.org/forum/italian-forum/118441
The following user(s) said Thank You: ritapas

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago #187966 by DenisChenu
The plugin can show exactly the sentence you need.

For Answers part : since Expression Manager already happen : you can show something like that:

More than [Q.nb.NON] friends said NO to this. but not do something like this :

{if('[Q.nb.NON]' == '0',"None said NO to this","More than [Q.nb.NON] friends said NO to this")}

For 4;0 : i surely do a new plugin for such system using a new EM function
github.com/LimeSurvey/LimeSurvey/commit/...e88774c37530b9415bcc

Something like {statCount("Q","NO")} then con use it anywhere more easily.

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 .
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: ritapas

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago #187969 by Joffm

but not do something like this :
{if('[Q.nb.NON]' == '0',"None said NO to this","More than [Q.nb.NON] friends said NO to this")}

How to understand this?

If I have this in my question
{if('[Q1.nb.1]' > 5, "More than " + ('[Q1.nb.1]' - 1) + " answered A", "Less than 6 answered A")}

I get either


or



But it doesn't work in questions of type equation like
eqQ1: {floor('[Qu1.nb.1]' / Qu0_1 * 100)}
eqQ2: {floor('[Qu1.nb.2]' / Qu0_2 * 100)}

The value is displayed correctly, but not stored in the answer table.
And a following equation like
M1: {min(eqQ1,eqQ2)}
fails obviously.

So in my opinion you can use it to display something - even with "if" statements -, but not to do further calculations.

Joffm


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

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago #187974 by DenisChenu
@ Joffm : yes, you can do it in question and help in 3.X
You can do it in answers or subquestion in 2.X
But you can't do it in answers or subquestion in 3.X

I put :

For Answers part : since Expression Manager already happen : you can show something like that:


Thanks for correction.

You can use system like
{if('[Q1.nb.1]' > 5, "More than " + ('[Q1.nb.1]' - 1) + " answered A", "Less than 6 answered A")}
in question and help
But not in answers or subquestions

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 .
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: ritapas

Please Log in or Create an account to join the conversation.

More
1 month 2 weeks ago #188306 by ritapas
Denis' plugin does exactly what we needed and it works perfectly on our (rather old) LS 2.6.6-lts.
We hope to test soon on our LS3 environment.
Thank you all.
Rita
The following user(s) said Thank You: DenisChenu, lfanfoni, gabrieljenik

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #188715 by lfanfoni
It works perfectly even with version 3. Great work !!!
Thank you

Aiutaci a far crescere la comunità italiana di LimeSurvey: vai sul forum Italiano per richieste e soluzioni citando sempre la versione usata, non scrivere in privato, suggerisci modifiche o nuove traduzioni - www.limesurvey.org/forum/italian-forum/118441
The following user(s) said Thank You: DenisChenu, ritapas

Please Log in or Create an account to join the conversation.

More
1 month 2 days ago - 1 month 2 days ago #188798 by DenisChenu
For information : project in 4.0 , a core plugin to have statitics usage inside Expressin Manager directly
github.com/LimeSurvey/LimeSurvey/pull/13...52a79c514a726f65c89b

Then, for example :
See bugs.limesurvey.org/view.php?id=11589#c53523
For usage inside subquestion text AND subquestion relevance :)

2 functions :
statCount(Q01.SGQA) and statCount(Q01.SGQA,"A1")

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 .
An error happen ? Before make a new topic : remind the Debug mode .
Last edit: 1 month 2 days ago by DenisChenu.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!