process_biomarker
sets up biomarkers for hypothesis testing
process_biomarker( biomarker_tbl, biomarker_name, covariates_flagged, baseline_cols, inclusion_cols, concept_id_exclusions, ... )
biomarker_tbl | A tibble with columns, c('person_id','start_date','measurement_date', 'end_date','measurement_concept_id', 'value_as_number') |
---|---|
biomarker_name | A string, e.g., "LDL cholesterol" |
covariates_flagged | A tibble with columns, c('person_id','dob','gender_concept_id', 'race_concept_id','start_date', 'first_drug_exposure','final_end_date','age', 'drug_exposed','treatment_new_exposed') |
baseline_cols | A vector, e.g. c('person_id', 'start_date', 'first_drug_exposure', 'final_end_date') |
inclusion_cols | A vector, e.g., c('person_id', 'measurement_date', 'measurement_concept_id', 'value_as_number') |
concept_id_exclusions | A vector, e.g., for LDL, c(2212451) |
This function sets up biomarkers for hypothesis testing. Updated: 2021-03-27