preCalcWeights: Pre-calculated weights for calculating phenotype risk scores

preCalcWeightsR Documentation

Pre-calculated weights for calculating phenotype risk scores

Description

The weights are based on EHR data from the Vanderbilt University Medical Center Synthetic Derivative (SD) and ICD-phecode map version 1.2 and are calculated using the "prevalence" method.

Usage

preCalcWeights

Format

A data.table with the following columns:

  • phecode: Character vector of phecodes

  • prev: Numeric vector of prevalences, i.e., fraction of subjects in the SD that have at least one occurrence of the given phecode

  • w: Numeric vector of weights, calculated as -log10(prev)

See Also

getWeights()


hugheylab/phers documentation built on April 24, 2023, 10:26 a.m.