The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » Using R to weight data for domestic violence
Re: Using R to weight data for domestic violence [message #20446 is a reply to message #20418] Tue, 03 November 2020 08:29 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3199
Registered: February 2013
Senior Member

Following is a response from DHS Senior Sampling Specialist, Mahmoud Elkasabi:

ipv_studyf <- subset(ipv_studyf, !is.na(d005) )
ipv_studyf$wt <- ipv_studyf$d005/1000000 

ipvdesign <- svydesign(id = v021, strata = v023, weights = wt, data = ipv_studyf)

[Updated on: Tue, 03 November 2020 08:31]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: Pooled Cross sections
Next Topic: All women factor in stata
Goto Forum:
  


Current Time: Mon Dec 2 04:47:28 Coordinated Universal Time 2024