Nothing
##' CM_ECMR_C_NNF NMR five years prior to survey.
##'
##' BR
#' @param Rdata data.frame from surveyPrev::getDHSdata
#'
#' @return A partially processed data.frame that will be used in surveyPrev::getDHSindicator. The whole function can be used as a parameter in surveyPrev::getDHSindicator
#'
#' @author Miaolei Bao, Yunhan Wu, Qianyu Dong
#' @examples
#' \dontrun{
#' dhsData <- getDHSdata(country = "Zambia", indicator = "CM_ECMR_C_NNF", year = 2018)
#' }
#'
#' @export
#'
CM_ECMR_C_NNF<- function(Rdata){
nmr.year=5
BRdata <- Rdata%>%
mutate(wt = v005/1000000)%>%
mutate(bo10 = Rdata$v008-12*nmr.year-b3)%>%
filter(bo10<0)
BRdata$value<- ifelse(BRdata$b7==0, 1, 0)
BRdata$value[is.na( BRdata$value)] <- 0
return(BRdata)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.