Number of obs and population size not the same [message #26782] |
Mon, 01 May 2023 08:00 |
Johanne Elgaard
Messages: 6 Registered: April 2023
|
Member |
|
|
I'm working with the 2014 Ghana DHS. I am trying to calculate frequencies and percentages after weighting the data. My problem is that my number of observations are 945, but when using both svyset and [iweight] I get a population size of 925 and a number of obs of 945 in the output. When calculating the sum of the weighted frequencies together, it also adds up to 925. Can anyone explain the difference between number of obs and population size to me?
Thank you:)
|
|
|
|
|
Re: Number of obs and population size not the same [message #26786 is a reply to message #26785] |
Mon, 01 May 2023 12:45 |
Bridgette-DHS
Messages: 3210 Registered: February 2013
|
Senior Member |
|
|
Following is a response from Senior DHS staff member, Tom Pullum:
You should not have to do any re-weighting. If you are using Stata, with svyset and [pweight=v005], Stata will always re-normalize so the weights have a mean of 1. As part of this, the factor of 1,000,000 is removed. (That's why you get the same results with [pweight=v005] or with [pweight=v005/1000000]. I don't know about packages other than Stata.
|
|
|