drug_repurposing_t1: Calculate demographic table information for drug repurposing...

Description Usage Arguments Details

View source: R/drug_repurposing_t1.R

Description

Calculate demographic table information for drug repurposing cohorts

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
drug_repurposing_t1(
  r_covariates,
  r_drugs,
  r_biomarkers,
  drug,
  phenotype,
  biomarker,
  source,
  concept_id_exclusions = c(2212451),
  exptid
)

Arguments

r_covariates

A tibble, with columns c('person_id','dob','gender_concept_id','race_concept_id','drug_concept_id','first_drug_exposure','last_drug_exposure')

r_drugs

A tibble, with columns c('person_id','start_date','end_date','drug_exposure_start_date','drug_concept_id')

r_biomarkers

A tibble, with columns c('person_id','start_date','measurement_date','end_date','measurement_concept_id','value_as_number')

drug

A string, e.g., "simvastatin"

phenotype

A string, e.g., "Hyperlipidemia"

biomarker

A string, e.g., "LDL Cholesterol"

source

A string, e.g., "Vanderbilt"

concept_id_exclusions

A vector, e.g., c(2212451)

exptid

A numeric, e.g., 20210123061054

Details

Last updated: 2021-03-27


pwatrick/pwUtilities documentation built on Oct. 18, 2021, 6:21 p.m.