selection: Identify the case/control based on ICD9 codes or Phecodes...

Description Usage Arguments Examples

View source: R/selection.R

Description

Identify the case/control based on ICD9 codes or Phecodes criteria

Usage

1
selection(pheno_dat, code_case, code_control, icd9_phe)

Arguments

code_case

ICD9 codes or Phecodes used to define cases

code_control

ICD9 codes or Phecodes used for exclusion of controls

icd9_phe

Parameter to define whether the criteria decided by ICD8 codes or Phecodes

pheno_data

Phenotype data(sparse matrix)

demo_data

Demographics data

Examples

1
2
3
4
5
selection("GRID_ICD9.Aug2017.pivot.RData",c("238.72","238.73","238.74","238.75"),
                         c("238.72","238.73","238.74","238.75","238.76","205.10","205.11","205.12",
                           "238.71","238.4","205","205.0","205.00","205.01","205.02","205.2","205.20","205.21",
                           "205.22","205.8","205.80","205.81","205.82","205.9","205.92","V10.62","40.0",
                           "41.04","41.05","41.06","41.07","41.08","996.88","V42.82"),"icd9")

verasiwei/PheWASExtension documentation built on May 22, 2019, 6:34 p.m.