Welcome to the LimeSurvey Community Forum

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

implementing probabilities "p=2/6" for questions and...

  • ChristianHp
  • ChristianHp's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 7 months ago #124453 by ChristianHp
hey!

i randomized 4 questions, so far so good, but now i am trying to give p=2/6 for Q1 and Q2 (pQ1+pQ2=2/6), and pQ3=1/3, pQ4=1/3.

i know how to randomize for an equal distribution, but not for specific probabilities..

next step would be: the randomized questions have a matrix (8 answer possibilities), if someone choses answer possiblity 1-4 -> give him followupquestion A and hide B, if someone choses answer possibility 5-8 -> give him followupquestion B and hide A.

i do know how to work with "YES" or "NO" regarding this issue, but not when have a matrix?

any help is appreciated!
christian
The topic has been locked.
  • ChristianHp
  • ChristianHp's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 7 months ago #124522 by ChristianHp
i have a new approach, should this work?

equation:

{if(randnumber>=1, randnumber, (rand(1,6)))}

questions:

((392418X58X712.NAOK == "1"))
((392418X58X712.NAOK == "2"))
((392418X58X712.NAOK == "3,4"))
((392418X58X712.NAOK == "5,6"))

so i got p=1/6 for q1 and q2, and p=1/3 for q3 and q4 - am i right?

part 2:

the follow up question looked like this so far:

((392418X58X676.NAOK == "Y")) or ((392418X58X677.NAOK == "Y")) or
((392418X58X678.NAOK == "Y"))

now as i got instead of a yes/no question a matrix question, can i use it like that?

((392418X58X677.NAOK == "komplett ablehnen")) or ((392418X58X677.NAOK == "sehr stark ablehnen")) or ((392418X58X677.NAOK == "stark ablehnen")) or ((392418X58X677.NAOK == "eher ablehnen")) -> this would be for one question, might this work?


thx alrdy!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose