Hi, everyone.
It's the first time I ask question on this forum which did help me a lot in the past few years.
I have 14 household surveys in 14 countries. Each survey was conducted in different years and there is a household weight variable in each dataset. Now I merged them and tried to cross tabulate the country and gender_urbanrural (four types of value: male_rural, female_rural, male_urban, female_urban) variable with weights (tab country gender [aw=hhweight], m) . But I found that such a cross-tabulation would create weird number for some of the countries. For example, if I add one if condition by the end of the tab (tab country gender [aw=hhweight] if abc==1, m), some country's row total would be greater than its row total without the condition. But in the dataset, a condition would give a smaller subsample. If I don't add the weight (tab country gender, m), there is no such a problem. So I wonder if there is any way for me to compare all countries with weight.
Thanks.
It's the first time I ask question on this forum which did help me a lot in the past few years.
I have 14 household surveys in 14 countries. Each survey was conducted in different years and there is a household weight variable in each dataset. Now I merged them and tried to cross tabulate the country and gender_urbanrural (four types of value: male_rural, female_rural, male_urban, female_urban) variable with weights (tab country gender [aw=hhweight], m) . But I found that such a cross-tabulation would create weird number for some of the countries. For example, if I add one if condition by the end of the tab (tab country gender [aw=hhweight] if abc==1, m), some country's row total would be greater than its row total without the condition. But in the dataset, a condition would give a smaller subsample. If I don't add the weight (tab country gender, m), there is no such a problem. So I wonder if there is any way for me to compare all countries with weight.
Thanks.
Comment