Quantcast
Channel: Topics in Category: Can I do this with LimeSurvey? - LimeSurvey forums
Viewing all articles
Browse latest Browse all 17529

Use FLOOR to assign condition based on participant number - by: cjvanlissa

$
0
0
Dear readers, I am having a problem with the following. In my survey, I assign people to condition based on their participant number, using the FLOOR function. However, some numbers are SKIPPED completely, and I can't pinpoint the error. Here is the process I use:

Participants' number is filled in in a question called 'ppno'
The next question is equation type, called 'condition'. The equation is {((((ppno/3)-(FLOOR(ppno/3)))*3)}

Then there are 3 questions, each of which is a different condition of my experimental manipulation. The questions have these relevance equations:

condition == 0
condition == 1
condition == 2

Now, when I entered participant number 211, I first noticed the problem that it SKIPS these questions completely. Yet I don't see how the outcome of ((((211/3) - (floor(211/3)))*3) could be anything other than 0|1|2

Could anyone point me in the right direction please? I've been at this for 3 hours and it seems like it should be simple!

Thank you so much,
Caspar

Viewing all articles
Browse latest Browse all 17529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>