The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Keeping caseid in and keeping missing observations out when using Stata "collapse"
Re: Keeping caseid in and keeping missing observations out when using Stata "collapse" [message #6672 is a reply to message #6666] Thu, 25 June 2015 11:53 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3017
Registered: February 2013
Senior Member
Following is a response from Senior DHS Stata Specialist, Tom Pullum:

If you construct a cluster-level variable using the collapse command, it is not necessary to use weights at all, because everyone in the same cluster has the same weight. To confirm this, you could collapse WITH weights and then collapse WITHOUT weights, and compare the two sets of numbers. They should be exactly the same.

However, if you want to collapse for a larger aggregate, such as a district or region, which includes more than one cluster, you definitely should use weights as part of the collapse.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: merging wealth index from Ethiopia DHS 2000 to women's file
Next Topic: What is the difference between hw70_1 hw70_2 hw70_3 etc?
Goto Forum:
  


Current Time: Fri Mar 29 10:36:11 Coordinated Universal Time 2024