Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


R script for "Psychological Distress and Rates of Health Insurance Coverage and Use and Affordability of Mental Health Services, 2013–2014"

analyze-NHIS-data.R contains the complete R script used to download, preprocess, and analyze NHIS data for the associated paper in Psychiatric Services.

This R script is complete and can be run in order as is to reproduce all reported results, though the user must specify a working directory. The script also outputs some figures not reported in the paper, such as demographics associated with different levels of psychological distress. Output is a single .txt file holding all results with annotations.