The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Ethiopia » Need help (Multilevel mixed effect logistic regression analysis )
Re: Need help [message #27539 is a reply to message #27537] Thu, 31 August 2023 09:15 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3123
Registered: February 2013
Senior Member
Following is a response from Senior DHS staff member, Tom Pullum:

You do not have a problem. First, you seem to expect that the weighted and unweighted numbers of cases should be equal--or equivalently, the mean weight is 1--but that's not necessarily the case. I suggest that you open the KR file and enter these two Stata lines (or their equivalent in R):
summarize v005
summarize v005 if b16>0 & b16<.
You will see that the mean weight is not 1 (or 1000000) for the KR file as a whole or for the subset of children who are in the PR file. That's because v005 is normalized during data processing ONLY to have a mean of 1 (1000000) in the entire IR file. Then the mother's weights are assigned to the children. Women can have any number of children. Subgroups of children, or of women, will therefore have mean weights that differ from 1.

Second, when you estimate a statistical model, at least in Stata, using pweights, Stata will automatically re-normalize the weights so that they have a mean of 1. That's a default that makes sense and that I don't think you could override, even if you wanted to. I expect that R does the same thing.

So, as I said, you do not have a problem.

[Updated on: Thu, 31 August 2023 09:25]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: Using separate wealth index
Next Topic: BIRTH MONTH
Goto Forum:
  


Current Time: Thu Aug 8 04:10:23 Coordinated Universal Time 2024