- Posts: 8
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
5 years 11 months ago #168279
by ychia88
To randomly assign participants to two different groups:Experimental and Control was created 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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12923
- Thank you received: 3977
5 years 11 months ago #168280
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic To randomly assign participants to two different groups:Experimental and Control
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11658
- Thank you received: 2742
5 years 11 months ago #168332
by holch
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.
Replied by holch on topic To randomly assign participants to two different groups:Experimental and Control
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
5 years 11 months ago #168342
by ychia88
Replied by ychia88 on topic To randomly assign participants to two different groups:Experimental and Control
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.
Unfortunately, is the school version. Kind of challenging to request the school to upgrade the version.
Attachments:
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11658
- Thank you received: 2742
5 years 11 months ago #168343
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic To randomly assign participants to two different groups:Experimental and Control
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.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
5 years 11 months ago #168346
by ychia88
Replied by ychia88 on topic To randomly assign participants to two different groups:Experimental and Control
Hi, apologies.
As attached is the LSS file.
As attached is the LSS file.
Attachments:
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11658
- Thank you received: 2742
5 years 11 months ago #168347
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic To randomly assign participants to two different groups:Experimental and Control
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.
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.