instructions for reproducing the data-set of a manuscript
publication date: August 2016
documentation: rand.org/labor/aging/dataprod/hrs-data.html
log-in: https://ssl.isr.umich.edu/hrs/start.php
location: https://ssl.isr.umich.edu/hrs/files2.php?versid=34
.zip file: randpstata.zip
language: R
version: 3.4.3
packages:
tidyverse packages: dplyr, haven, purrr, tidyr
other packages: rprojroot, zhaoy
1 Download this repository.
2 Download the raw data. From inside the raw data .zip file, copy-paste or cut-paste rndhrs_p.dta
to the root directory of this repository.
3 In this repository, run makefile.R
to build the manuscript data-set. After makefile.R
runs, the manuscript data-set (hrs.feather
) should appear in the root directory.
To run an individual R file that is in this repository, use the file browser / manager / system of the computer instead of the "File" menu in R or RStudio. Suggested methods:
-
Select the file, right-click, hover over "Open With", and left-click on R or RStudio.
-
Select the file, right-click, and left-click on "Open".
-
Double-click on the file.