This only contains the code for the Truven claims database analysis. See https://narayanan.lab.uiowa.edu/article/datasets for animal models.
etl/find_bph_rx.rmd/html
identifies and extracts users of TZ, DZ, AZ, and tamsulosinetl/bph_enrollments_demographics.rmd/html
finds demographics and enrollment periods for usersetl/bph_reduce_enrollments.rmd/html
reduces to index enrollment periodsetl/build_model_data.rmd/html
builds the model data set using functions in etl/add_covariates_functions.R
matching/estimate_propensity_scores.rmd/html
estimates propensity scoresmatching/matches.rmd/html
performs matching using matching/match.cpp
to do the matching.analysis/balance.rmd/html
checks for cohort balance before/after PS matchinganalysis/analysis.rmd/html
performs the survival analysisanalysis/table_functions.R
contains helper functions for the analysis