Investigating the association between residing in an Asian or Hispanic ethnic enclave with hospitalizations with Parkinson's disease
general note: files that begin with '1_' contain code compiling outcome and covariate data; those that begin with '2_' are compiling exposure data; those that begin with '3_' are for running analyses; those that begin with '4_' are compiling and processing results
1_1_Medicare FFS enrollment_2010clean.R: Compile and clean Medicare denominator file, which includes everyone who was enrolled in Medicare Fee-For-Service (FFS) from 2008 onwards to include information of benefiiciares who had a hospitalization with Parkinson's disease (PD) in the two years prior to start of study period
1_2_Merge PD hospitalization data_2010clean.R: Merge with hospitalizations with PD outcome data
1_3_Clean_2yrs.R: Exclude beneficiaires with hospitalization with PD in the first two years of enrollment
1_4_covariates.R: Merge in area-level covariate data
2_0_explore_exposure.R: Descriptive statistics and maps of American Community Survey variables used to derive enclave definitions
2_1_define_enclaves.R: Derive ethnic enclave definitions based on the three approaches outlined in the manuscript (cutoff, spatial, and dimensionality reduction)
3_0_setup_process_res.R: creating files to store estimates/results
3_1_table1.R: Descriptive statistics of study cohort (i.e., Table 1)
3_2_analysis.R: all (main and secondary) analyses conducted in the study
4_0_process_results.R: Compile and plot results
bootstrap_ci: folder containing code to bootstrap confidence intervals for all analyses in the study