mapPhecodesToExclusions: Map phecodes to their exclusions

View source: R/mapPhecodesToExclusions.R

mapPhecodesToExclusionsR Documentation

Map phecodes to their exclusions

Description

This function maps phecodes (optionally with ids for individuals) to a set of phecode exclusions. It has replaced mapPheWAStoExclusions.

Usage

mapPhecodesToExclusions(phecodes, ids)

Arguments

phecodes

A vector of phecodes.

ids

An optional vector of ids to pair with the provided phecodes.

Value

A data frame containing phecodes and their exclusions. IDs for those codes and exclusions are included if they were supplied.

id

If ids were provided, the individual ids are included as the first column

exclusion_criteria

Input phecodes

exclusion

The exclusion phecodes for the codes provided

Author(s)

Robert Carroll Laura Wiley


PheWAS/PheWAS documentation built on July 3, 2023, 3:40 p.m.