R/EC_DHSwts.R

Defines functions EC_DHSwts

Documented in EC_DHSwts

EC_DHSwts<-function(X, dejure, defacto, HHwt){
  for (i in 1:length(dejure)) {
    if(dejure[i] ==0) {
      dejure[i] = defacto[i]
    } 
  }
  Weights = (dejure * HHwt) / 1000000
  X<-cbind(Weights,X)
  return(X)
#' @export
}
Lauren-Eyler/EconomicClusters documentation built on March 22, 2022, 1:21 a.m.