Page 1 of 1

How to randomly select respondents for other sections

Posted: July 2nd, 2023, 2:19 am
by pngugi
Good morning CSPro Users,

I'm seeking guidance or a sample system for implementing a Kish grid. My questionnaire includes a section for collecting demographic information from up to 100 members. In the subsequent section, I need to randomly select only 10 members of those who were listed to answer questions in other sections. I would like to know how to implement this logic in CSPro.

Kind regards,

Paul

Re: How to randomly select respondents for other sections

Posted: July 5th, 2023, 5:56 pm
by sherrell
Hi Paul,

There are many ways to do this. One would be to create a list of persons from your household as the household is being constructed using CSPro's list feature:

https://www.csprousers.org/help/CSPro/list.html

Then use the random function with the upper bound being equal to the number of people in your list:

https://www.csprousers.org/help/CSPro/l ... ction.html
https://www.csprousers.org/help/CSPro/r ... ction.html

As you select a person, remove them from the list. In this way you don't have to worry about the person getting chosen twice.

If you could, please post questions to a more appropriate area of the forum; for example, this sounds like it's an ENTRY or EDITING question.

Thanks,
Sherrell