The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » creation of level 2 weights for multi level models (creation of level 2 weights for multi level models)
Re: creation of level 2 weights for multi level models [message #25031 is a reply to message #25017] Mon, 22 August 2022 08:17 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3151
Registered: February 2013
Senior Member

Following is a response from DHS Research & Data Analysis Director, Tom Pullum:

The error message you are getting may be another manifestation of a problem in a post that I just answered. Because the clusters are numbered separately within states, you need to generate a new cluster ID with a statement such as "egen cluster_ID=group(hv024 hv001)" and then use cluster_ID rather than hv001 as the PSU identifier.

All cases in the same cluster have the same weight (hv005). The error message you are getting could be due to having several clusters (in different states, with different weights) with the same value of hv001.

Of course the prefix hv could be v or mv, depending on which file you are using.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Declaring Survey Design for dataset on STATA: NFHS-5 India 2019-2021
Next Topic: Confirming correct survey design
Goto Forum:
  


Current Time: Sat Aug 31 03:16:23 Coordinated Universal Time 2024