The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Setting the Data for Survey Analysis-Stata
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 messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3199
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.

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Number of married couple
Next Topic: command for Cluster Average of Women's employment
Goto Forum:
  


Current Time: Sun Nov 24 18:02:08 Coordinated Universal Time 2024