The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » General » DHS ZIMBABWE 2015 (DEFF and Survey package R)
Re: DHS ZIMBABWE 2015 [message #23910 is a reply to message #23909] Fri, 07 January 2022 15:30 Go to previous messageGo to previous message
p.pajak is currently offline  p.pajak
Messages: 3
Registered: December 2021
Member
Just to clarify further my answer please see below my code:
DHSdesign<-svydesign(id= ~fin_df$PSU,
strata= ~fin_df$STRATA,
weights= ~fin_df$PERWEIGHT, # the weights have already been divided by 1000000
data=fin_df) # fin_df has already been subset by region of interest

This is the outcome I obtain by calling the summary of my survey design
summary(DHSdesign)

Stratified 1 - level Cluster Sampling design (with replacement)
With (36) clusters.

Therefore I need to use DEFF = "replace" to obtain the DEFF as below:
svymean(~fin_df$C_SEX2, design=DHSdesign, na = TRUE, deff = "replace")

I read in another comment that to change the design to "without replacement" I would need to specify the fpc which is not provided by DHS and therefore doesn't need to be included.
Hope this helps clarify my answer! Thank you very much for the assistance.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: gender matching interviewer / participant in Zimbabwe & Burundi
Next Topic: Jordan - Cousin Marriage Question
Goto Forum:
  


Current Time: Mon Apr 7 04:10:04 Coordinated Universal Time 2025