The code for this project is hosted as Rmarkdown files at the GitHub repo for this project. Compiled HTML versions of Rmarkdown are hosted here:
find_treated
identifies and extracts users of TZ, DZ, AZ, and tamsulosinfind_treated_demographics_enrollments
adds enrollment and demographic data to ever usersfind_pd_dates
finds the first diagnosis dates of PD for everyone in the Truven databasereduce_treated_enrollments
reduces the ever users enrollment periods, removes people with pre-existing PDfind_luts_procs
finds LUTS procedures (PSA measurement, uroflow, etc) in the Truven databasebuild_model_data_treated
builds the model data set for propensity score model estimationfit_psm
generates the propensity score models and fitted valuesmatch
generates matches, uses match.cpp
for faster matchinganalysis/analysis_functions.R
contains the functions used to generate tables, figuresanalysis/tz-tam
does the TZ/DZ/AZ versus tamsulosin analysisanalysis/tz-5ari
does the TZ/DZ/AZ versus 5ARI analysisanalysis/tam-5ari
does the tamsulosin versus 5ARI analysissensitivity-analyses/bph-restricted/fit_psm
fits the PS model with only men with a BPH or related diagnosissensitivity-analyses/bph-restricted/match
generates matches of only the men with a BPH or related diagnosissensitivity-analyses/bph-restricted/analysis
performs the analysis on the BPH-restricted cohortsensitivity-analyses/dx-only-outcome/fit_psm
fits the PS model with PD diagnosis only as case defsensitivity-analyses/dx-only-outcome/match
generates matches with PD diagnosis only as case defsensitivity-analyses/dx-only-outcome/analysis
performs the analysis with PD diagnosis only as case defsensitivity-analyses/time-varying-effect/analysis
checks for time-varying estimated HRsensitivity-analyses/washout/fit_psm
fits the PS model with variable wash out periodssensitivity-analyses/washout/match
generates matches with variable wash out periodssensitivity-analyses/washout/analysis
performs the analysis with variable wash out periods