randomly selection of eligible participant from the roster
Posted: April 10th, 2024, 1:52 pm
Hi All
Greetings
I have a household listing application, where household members data is being collected.
After roster finishes, i have a summary question "linenumber_child" . In this variable, i want eligible child line number automatically from the roster.
Eligible child definition is:
Child_age in 0:23 and mother_line>0 (Meaning mother exist), if both conditions are true, this is eligible child.
Now there may be more than one eligible child with these eligibility.
2 questions:
how to select one child line number randomly from all available eligible children in the roster.
or
how to select first eligible child from the roster.
Please suggest and help.
Thanks and Regards
Manoj
Greetings
I have a household listing application, where household members data is being collected.
After roster finishes, i have a summary question "linenumber_child" . In this variable, i want eligible child line number automatically from the roster.
Eligible child definition is:
Child_age in 0:23 and mother_line>0 (Meaning mother exist), if both conditions are true, this is eligible child.
Now there may be more than one eligible child with these eligibility.
2 questions:
how to select one child line number randomly from all available eligible children in the roster.
or
how to select first eligible child from the roster.
Please suggest and help.
Thanks and Regards
Manoj