The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » Using weights in regression analysis
Re: Using weights in regression analysis [message #300 is a reply to message #248] Thu, 11 April 2013 17:31
 Bridgette-DHS Messages: 3064Registered: February 2013 Senior Member
Here is a response from one of our STATA experts Tom Pullum, that should answer your question.

At DHS we mostly use Stata, so I will answer in terms of Stata. The weighting of the data is done as part of the estimation (e.g. regression) command. There is no other sense in which you would "weight the data". For example, instead of "regress y x" you would say "regress y x [pweight=v005]".

You will get the same result if you first say "gen pwt=v005/1000000" and then "regress y x [pweight=pwt]", which some users would prefer to do, but as I said it makes no difference, because Stata always automatically normalizes the weights. Without weights, the estimates are biased toward the oversampled subpopulations and away from the undersampled subpopulations.

The adjustments for clusters and strata will affect the standard errors but not the estimates. If you want to test the significance of the coefficients, you must make those adjustments. For the clusters you expand the above statement to "regress y x [pweight=pwt], cluster(v001)". If you use strata, you must use "svyset" and "svy: regress". The svyset can specify the pweights, clusters, and strata, and then apply them with "svy: regress y x". The svyset command differs slightly across different versions of Stata, e.g. between 11 and 12, so just enter "help svyset" to get the syntax for your version. The strata variable is usually either v022 or v023. However, it is not always labeled correctly. As a general rule, the strata are all combinations of urban/rural and region (the first subnational unit). If the variable labeled "strata" is not consistent with that rule, you should ask someone at DHS to check it.

 Using weights in regression analysis By: DHS user on Wed, 20 February 2013 11:48 Re: Using weights in regression analysis By: Bridgette-DHS on Wed, 20 February 2013 11:50 Re: Using weights in regression analysis By: enuanand on Tue, 19 March 2013 23:32 Re: Using weights in regression analysis By: Fabrice LOTY on Wed, 20 March 2013 05:34 Re: Using weights in regression analysis By: Traore on Wed, 20 March 2013 03:54 Re: Using weights in regression analysis By: Trevor-DHS on Wed, 20 March 2013 20:17 Re: Using weights in regression analysis By: idas on Fri, 29 March 2013 13:59 Re: Using weights in regression analysis By: Reduced-For(u)m on Sat, 30 March 2013 19:14 Re: Using weights in regression analysis By: idas on Tue, 02 April 2013 13:15 Re: Using weights in regression analysis By: Bridgette-DHS on Thu, 11 April 2013 17:31 Re: Using weights in regression analysis By: mnicolson on Fri, 14 June 2013 16:18 Re: Using weights in regression analysis By: Reduced-For(u)m on Fri, 14 June 2013 17:24 Re: Using weights in regression analysis By: smgwu on Thu, 17 October 2013 20:19 Re: Using weights in regression analysis By: Reduced-For(u)m on Sun, 20 October 2013 19:09 Re: Using weights in regression analysis By: myigzaw on Tue, 16 April 2013 08:25 Re: Using weights in regression analysis By: Reduced-For(u)m on Fri, 19 April 2013 01:04 Re: Using weights in regression analysis By: Bridgette-DHS on Fri, 26 April 2013 10:48 Re: Using weights in regression analysis By: Khaing Zar on Sat, 22 September 2018 02:31 Re: Using weights in regression analysis By: Bridgette-DHS on Mon, 24 September 2018 09:16 Re: Using weights in regression analysis By: kindu on Sat, 25 January 2020 12:09 Re: Using weights in regression analysis By: soumava on Wed, 07 February 2018 16:49 Re: Using weights in regression analysis By: Bridgette-DHS on Thu, 08 February 2018 09:40 Re: Using weights in regression analysis By: Khaing Zar on Thu, 20 September 2018 21:14
 Previous Topic: Deriving district population size from DHS weights? Next Topic: Interpretation of Rescaled household level weights for India-NFHS4
Goto Forum:

Current Time: Sat May 25 01:58:13 Coordinated Universal Time 2024