ukbtools (version 0.11.1)

ukb_icd_prevalence: Returns the prevalence for an ICD diagnosis

Description

Returns the prevalence for an ICD diagnosis

Usage

ukb_icd_prevalence(data, icd.code, icd.version = 10)

Arguments

data

A UKB dataset (or subset) created with ukb_df.

icd.code

An ICD disease code e.g. "I74". Use a regular expression to specify a broader set of diagnoses, e.g. "I" captures all Diseases of the circulatory system, I00-I99, "C|D[0-4]." captures all Neoplasms, C00-D49.

icd.version

The ICD version (or revision) number, 9 or 10. Default = 10.

See Also

ukb_icd_diagnosis, ukb_icd_code_meaning, ukb_icd_keyword

Examples

Run this code
# NOT RUN {
# ICD-10 code I74, Arterial embolism and thrombosis
ukb_icd_prevalence(my_ukb_data, icd.version = 10, icd.diagnosis = "I74")

# ICD-10 chapter 9, disease block I00<U+2013>I99, Diseases of the circulatory system
ukb_icd_prevalence(my_ukb_data, icd.version = 10, icd.diagnosis = "I")

# ICD-10 chapter 2, C00-D49, Neoplasms
ukb_icd_prevalence(my_ukb_data, icd.version = 10, icd.diagnosis = "C|D[0-4].")
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace