Hi.
I have a dataset which combine 14 household surveys in 14 countries. Each survey was conducted in different years and each survey has a household weight variable that only specifies to this country's context (data structure is the same across 14 countries). Now I merged them and tried to cross tabulate the country and gender_area (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 values 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 (KHM, NPL) 's row total would be greater than their original row total without the condition. But in this 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. If I just tab one country with weight, there is no such a problem either. So I wonder if there is any way for me to compare all countries with weight. I am not that familiar with survey data reference in Stata (svyset, strata, etc). Hopefully there is someone can help.
Array
Related Posts with Combining surveys with distinct analytical weights
Same value for duplicatesHello, statalist! I am struggling with the replace the value for the same person. In the dataset, t…
bootstrap for panel dataDear All, I modify a code to test the significance of product of two coefficients from two panel dat…
How to include age as a dummy control in a fixed effect regression?Dear all, I have a problem understanding how i should specify the contol variable age in the follow…
Reshape only a group of variables within a datasetDear Stata users, I would like to create a variable named region in one column. This is an example …
CIBAR (sort ascending)Wonder if possibel to apply sort ascending or sort descening funciton to cibar generated graph. for …
Subscribe to:
Post Comments (Atom)
0 Response to Combining surveys with distinct analytical weights
Post a Comment