I am working on a survey data collected at 3 stages consisting of villages, enumeration blocks and households. Villages have been selected using PPS method. I have assigned the village level weights manually in stata using the following syntax repeating it as many villages I have :
replace weight=xxxx if block_code ==1 & eb_no__eb_code==yyy
Now enumeration blocks, households and individuals are nested consecutively. I have 2000 individual samples and I want to assign design weight at individual level. I like to know what s the appropriate syntax for this using looping function.
Thanx in advance.
replace weight=xxxx if block_code ==1 & eb_no__eb_code==yyy
Now enumeration blocks, households and individuals are nested consecutively. I have 2000 individual samples and I want to assign design weight at individual level. I like to know what s the appropriate syntax for this using looping function.
Thanx in advance.
Comment