This repo contains the R
code (as Quarto files, both qmd
and html
) used
to conduct analyses in the pre-print. The major research questions we
attempt to address are:
-
Do ALS-like symptoms appear in insurance claims before a person is diagnosed with ALS?
-
Does the risk for ALS vary between urban and non-urban areas?
-
Does the effect of ALS-like symptoms on future odds of being diagnosed with ALS vary between urban and non-urban areas?
This repo contains four main files:
-
build_cohort.qmd
and the renderedbuild_cohort.html
contain theR
code used to identify ALS cases and find matching non-ALS controls. Also removes any ALS cases with <365 days of enrollment between their first enrollment date and the first ALS date, -
extract_covariates.qmd
and the renderedextract_covariates.html
contain theR
code used to extract covariates used in the analysis. Also builds the data sets used in the analysis. -
main_analysis.qmd
and the renderedmain_analysis.html
include the main analysis reported in the paper and also all the non-survival sensitivity analyses. -
age_at_als_dx.qmd
and the renderedage_at_als_dx.html
include the age-at-diagnosis survival analyses.