-------------------------------------------------------------------------------- Replication files to the article: Raab, M., Fasang A., and Hess M. (2018): Pathways to death: the co-occurrence of physical and mental health in the last years of life. Demographic Research -------------------------------------------------------------------------------- This .zip archive contains all the do-files and R-scripts to replicate the results presented in the paper. Note, however, that the archive does not include the RAND HRS Data File (Version P) which can be easily downloaded after you have registered as HRS user. For further instructions check the following link: https://www.rand.org/labor/aging/dataprod/hrs-data.html -------------------------------------------------------------------------------- Stata files were created using version 15 but should also work with version 13 or higher. Analysis in R were using version 3.4.3 and may not be compatible with earlier versions. -------------------------------------------------------------------------------- Follow these steps to replicate the results: - Unzip the archive - Register (or log-in) as HRS user - Dowload the RAND HRS Data File (v.P; Stata format) - Store "randhrs_p.dta" in the folder "\01_data\01_HRS" - Open the master do-file (\PathwaysToDeath\03_do-files\00_master.do) and change the following lines: - line 113: change the macro setting the directory of the project folder to match the location on your computer - line 144: change the macro referring to the location of R The master do-file also includes further notes on how to replicate the results (see lines 11-43) - Run the master do-file (\PathwaysToDeath\03_do-files\00_master.do) -------------------------------------------------------------------------------- If you are re-using our code for your own projects we kindly ask you to cite our paper. April 2018