Skip to contents

Description

codeditr-package codeditr
Implementing Cause-of-Death Data Checks Based on the WHO CoDEdit Tool

Recode

cod_recode_sex()
Recode sex value of cause-of-death data based on CoDEdit rules
cod_recode_age_type()
Recode age type of cause-of-death data based on CoDEdit rules

Calculate

cod_calculate_age() cod_calculate_ages()
Calculate age at death based on date of birth and date of death

Check

cod_check_age()
Check age values in cause-of-death data based on CoDEdit rules
cod_check_sex()
Check sex values in cause-of-death data based on CoDEdit rules
cod_check_dod()
Check date of death value in cause-of-death data based on CoDEdit rules
cod_check_codedit_input()
Check structure and values of input data to CoDEdit tool
cod_check_code() cod_check_code_structure_icd10() cod_check_code_structure_icd11() cod_check_code_ill_defined_icd10() cod_check_code_ill_defined_icd11() cod_check_code_unlikely_icd10() cod_check_code_unlikely_icd11() cod_check_code_sex_icd10_() cod_check_code_sex_icd10() cod_check_code_sex_icd11_() cod_check_code_sex_icd11() cod_check_code_age_icd10_() cod_check_code_age_icd10() cod_check_code_age_icd11_() cod_check_code_age_icd11()
Check cause-of-death code for code entry mistakes and/or code completeness
cod_check_code_summary()
Summarise cause-of-death check results

Structure

cod_structure_input()
Structure cause-of-death data into CoDEdit tool input data

Utilities

get_age_values()
Get various age values for all three age types
list_ill_defined_icd11()
List ill-defined ICD 11 codes
expand_icd10_code_range()
Enumerate ICD 10 codes given a code range

Supporting datasets

icd10_example
Example death records dataset with ICD10 cause-of-death coding
icd11_example
Example death records dataset with ICD11 cause-of-death coding
icd10_unlikely_cod
Unlikely causes of death for ICD 10
icd11_unlikely_cod
Unlikely causes of death for ICD 11
icd10_cod_by_sex
Sex-specific causes of death for ICD 10
icd11_cod_by_sex
Sex-specific causes of death for ICD 11
icd10_cod_neonate
Neonate-specific cause-of-death for ICD 10
icd11_cod_neonate
Neonate-specific cause-of-death for ICD 11
icd10_cod_child
Child-specific cause-of-death for ICD 10
icd11_cod_child
Child-specific cause-of-death for ICD 11
cod_data_raw_example
Example raw cause-of-death dataset