getID: Identify disease cases within the UK Biobank.

Description Usage Arguments Author(s)

View source: R/diseaseIDs.R

Description

In the UK Biobank (UKBB) diseases are reported based on either in-hospital records (ICD-10 classification system; field id 41270), or based on self-reported diseases (field id 20001 or 20002).

The reported diseases are listed in large matrices where many of the cells are filled with NA's. This utility function enables easy extraction of disease cases based on a vector of ICD-10 codes and/or a vector of self-reported diseases.

This function requires two matrices 'self' and 'icd10', which are matrices with self-reported and ICD-10 diagnoses, where each row correspond to one individual and the columns correspond to the array number (see UKBB showcase for details).

Usage

1
getID(ICD = NULL, SR = NULL)

Arguments

ICD

a vector of ICD-10 codes

SR

a vector of self-reported disease codes.

Author(s)

Palle Duun Rohde


PDRohde/ugnome documentation built on Aug. 30, 2021, 7:47 p.m.