The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » HIV » HIV and Child Mortality (Measuring child mortality for child born to HIV positive mothers)
Re: HIV and Child Mortality [message #18218 is a reply to message #18215] Wed, 16 October 2019 10:37 Go to previous message
Liz-DHS
Messages: 1516
Registered: February 2013
Senior Member
A response from Dr. Mahmoud Elkasabi:
Quote:
Dear Eric,

The error is coming from a single PSU stratum. In these situations, the R "survey" package used by DHS.rates would give you this error. Functions from the survey package are used in developing the "chmort" but not in the "chmortp". This is why you did not see the problem in the chmortp function. The good news is that the error message indicated which stratum had this issue. A quick solution for this problem would be to combine stratum one with another stratum, let's say stratum 2. I assume both are in the same region, one is urban and the other is rural. Once you do this you will get rid of the single psu stratum and the code should work properly.

Best wishes,
Mahmoud
 
Read Message
Read Message
Read Message
Previous Topic: HIV indicators scripts
Next Topic: Cameroon DHS 2011 (Total Women Sample Used for "ever tested for HIV")
Goto Forum:
  


Current Time: Sat Apr 20 12:36:14 Coordinated Universal Time 2024