The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » IPUMS Demographic and Health Surveys (IPUMS-DHS)  » IDHSSTRATA & IDHSPSU: Inconsistent Lengths (Different Lengths among Countries)
IDHSSTRATA & IDHSPSU: Inconsistent Lengths [message #18064] Tue, 03 September 2019 20:49 Go to previous message
Yawo is currently offline  Yawo
Messages: 45
Registered: February 2019
Member
Hello:

Good evening - I am appending / pooling recent surveys from a number of African countries. I realized that the the length of the key stratification variables: IDHSSTRATA and IDHSPSU are different betweeen countries.
According to IPUMS documentation, IDHSSTRATA is supposed to be a 9-character variable, while IDHSPSU is a 10-characters.

But as the following example shows, the character length differs among countries. Does the length have to be the same across countries ? If so, how do I add or subtract characters?


Angola 2015:
Idhspsu = 2401000001
Idhsstrata = 240100018

Lesotho 2014
idhspsu: = 42603000180
Idhsstrata: = 4260300016

Zimbabwe 2015
idhspsu: = 71606000390
Idhsstrata: = 7160600017

thanks - Yawo

[Updated on: Tue, 03 September 2019 21:03]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: IPUMS DHS Tip #7 - Comparing statistics over time
Next Topic: What becomes of DHS weights after region harmonization by IPUMS-DHS
Goto Forum:
  


Current Time: Fri Nov 29 02:19:33 Coordinated Universal Time 2024