Hello, I am somewhat new to STATA and I am trying to generate a random sample. Kindly assist.
My data is composed of 4 villages. Each village is composed of an undefined number of households. Each household is composed of an undefined number of children.
I need to create a random sample of 70 children from each village but they should not be from the same household.
I have read about the sample command but I cannot seem to figure out how to make sure a child from the same household isn't selected.
sort village
by village: sample 70, count
My data is composed of 4 villages. Each village is composed of an undefined number of households. Each household is composed of an undefined number of children.
I need to create a random sample of 70 children from each village but they should not be from the same household.
I have read about the sample command but I cannot seem to figure out how to make sure a child from the same household isn't selected.
sort village
by village: sample 70, count
Comment