measure_treatment_effect: Measure treatment effect in clinical data Last updated:...

Description Usage Arguments

View source: R/measure_treatment_effect.R

Description

Measure treatment effect in clinical data Last updated: 2021-02-12

Usage

1
2
3
4
5
6
7
8
measure_treatment_effect(
  .data,
  biomarker_tbl,
  drug_name,
  phenotype,
  biomarker_name,
  cohort_vector
)

Arguments

.data

A tibble with columns, c("person_id", "drug_exposed", "treatment_new_exposed")

biomarker_tbl

A tibble with columns, c("person_id", "biomarker_baseline_value", "biomarker_treatment_value", "biomarker_change", "biomarker_name")

drug_name

A string, e.g., "Lisinopril"

phenotype

A string, e.g., "Hyperlipidemia"

biomarker_name

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

cohort_vector

A vector, e.g,. c("Primary Analysis", "Subanalysis 1", "Subanalysis 2", "Subanalysis 3")


pwatrick/systematicRepurposing documentation built on March 24, 2021, 5:49 p.m.