childhoodmortality: Calculates childhood mortality

Description Usage Arguments Examples

View source: R/childhoodmortality.R

Description

calculates childhood mortality & SE's

Usage

1
2
childhoodmortality(data, grouping = "sample", rate_type = "underfive",
  period = 5)

Arguments

data

dataframe object containing DHS variables YEAR, PSU, PERWEIGHT, KIDDOBCMC, INTDATECMC, KIDAGEDIEDIMP, and grouping var.

grouping

This character string gives the variable name of the variable denoting groups.

rate_type

This character string gives the type of mortality rate to be calculated (neonatal, postneonatal, infant, child, under-five).

period

This numeric value gives the period in years for which the mortality rate will be calculated (default 5 years).

Examples

1
2
3
4
5
data("model_ipums_dhs_dataset")
underfive_mortality_rates <- childhoodmortality(
 model_ipums_dhs_dataset,
 grouping ="wealthq"
)

caseybreen/childhoodmortality documentation built on June 8, 2020, 7:03 p.m.