Re: Setting the Data for Survey Analysis-Stata [message #27043 is a reply to message #27035] |
Wed, 14 June 2023 07:50 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to previous message](/theme/default/images/down.png) |
Bridgette-DHS
Messages: 3151 Registered: February 2013
|
Senior Member |
|
|
Following is a response from Senior DHS staff member, Tom Pullum:
To construct tables, you do not need a full svyset command. For frequencies, percentages, means, and rates you only need to use weights. The adjustments for clustering and stratification only affect standard errors, confidence intervals, and test statistics.
To construct a table of A vs B, where A and B are categorical variables, you can choose between two options, either "tab A B [iweight=v005/1000000]" or "svyset [pweight=v005]" and "svy: tab A B". The first option is easier but they will give the same results.
If you use the first option, with iweight, you have to divide v005 by 1000000. If you use the second option, with pweight, you do NOT need to divide by 1000000. You can if you want, but it will make no difference for your results.
You would use the full svyset command with estimation commands, such as "regress Y X". You have specified it correctly. I would not usually include a design option ("vce()") in svyset but you can certainly do that.
|
|
|