Welcome to the LimeSurvey Community Forum

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

To randomly assign participants to two different groups:Experimental and Control

  • ychia88
  • ychia88's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 10 months ago #168279 by ychia88
Hi,

I'm using NPS Enterprise Version 2.05+ Lime survey.


Was trying to randomly participants to two different set of questions.

1. My design is as such currently:
- Question Grp: Consent (Human Subject Research)
- Question:
Code: randomnumber
{if(is_empty(randomnumber.NAOK),rand(1,2),randomnumber.NAOK)}

2. I try to create two more questions. And assign them with either ((randomnumber.NAOK==1)) or ((randomnumber.NAOK==2)).


However, when I test the survey, the questions i created does not seem to appear but instead a page with either a "1" or "2" with no question appear.

Please kindly advise.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 10 months ago #168280 by Joffm
Hi,
of course, this is your first question, the "randomnumber".
There is displayed the result of "rand(1,2)"

While testing you should display it to check the logic.

But then hide this question.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 10 months ago #168332 by holch

NPS Enterprise Version 2.05+ Lime survey.


What is NPS Enterprise Version in connection with Limesurvey? NPS = Net Promotor Score???

If you are still on 2.05+ you should definitely consider an upgrade to a more recent version of Limesurvey.

Now to your problem: I think you are going in the wrong direction completely. Can you upload an example survey (export a LSS file with only the relevant questions) so that we can have a look at what you are doing?

I think you are not using relevance equations for the questions.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • ychia88
  • ychia88's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 10 months ago #168342 by ychia88
Not sure whether this is the file you looking for. I'm kind of new to LimeSurvey.




Unfortunately, is the school version. Kind of challenging to request the school to upgrade the version.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 10 months ago #168343 by holch
Well, even new to limesurvey you should notice that yours is called .lsg and i asked for a .lss.

You only exported a question group (LSG - LimeSurvey Group), but you need to export a LSS file: LimeSurvey Survey.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • ychia88
  • ychia88's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 10 months ago #168346 by ychia88
Hi, apologies.

As attached is the LSS file.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 10 months ago #168347 by holch
Here a few things:

  • Question "randomnumber": this needs to be a equation type question, not a "long free text" type of question, otherwise you can't read the random number for the relevance equations on the follow up questions.

  • In Question E1 you are using the question validation equation ((randnumber.NAOK, however, there is no question called "randnumber" in your survey. Correct would be "randomnumber". However, I don't know why you need this there. It doesn't make sense. You just need the relevance equation, which seems to be correct (once you fixed the first point).

  • Once you fixed these questions, it will work. I tested it here.

    I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
    No support via private message.

    The following user(s) said Thank You: ychia88
    The topic has been locked.

    Lime-years ahead

    Online-surveys for every purse and purpose