R/CM_ECMR_C_U5F.R

Defines functions CM_ECMR_C_U5F

Documented in CM_ECMR_C_U5F

##' CM_ECMR_C_U5F u5mr 5 years prior to survey.
##'
##' BR
#' @param Rdata  data.frame from surveyPrev::getDHSdata
#' @param mort.cut  age group cutoffs for hazard calculation. Constant hazards are assumed to be within the specified cutoffs.
#' @param mort.year The number of years preceding survey. Set to be 5.
#' @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
#'
#' @examples
#' \dontrun{
#' dhsData <- getDHSdata(country = "Zambia", indicator = "CM_ECMR_C_U5F", year = 2018)
#' }
#'
#' @export
#'
CM_ECMR_C_U5F<- function(Rdata, mort.cut = c(1, 2, 6, 12, 24, 36, 48, 60), mort.year = 5){

    Rdata <- CM_ECMR_C_U5M(Rdata, mort.cut = mort.cut, mort.year = 5)

  return(Rdata)
}

Try the surveyPrev package in your browser

Any scripts or data that you put into this service are public.

surveyPrev documentation built on June 19, 2026, 5:06 p.m.