Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hughjonesd/hrs-selection
Investigating natural selection in the US Health and Retirement Study
https://github.com/hughjonesd/hrs-selection
Last synced: 4 days ago
JSON representation
Investigating natural selection in the US Health and Retirement Study
- Host: GitHub
- URL: https://github.com/hughjonesd/hrs-selection
- Owner: hughjonesd
- Created: 2023-09-15T14:52:38.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-20T07:45:08.000Z (4 months ago)
- Last Synced: 2024-10-31T18:36:46.294Z (12 days ago)
- Language: R
- Size: 11 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hrs-selection
Investigating natural selection in the US Health and Retirement Study. Now published in [Behavior Genetics](https://link.springer.com/article/10.1007/s10519-024-10189-8).
The paper is at [hrs-selection.pdf](https://github.com/hughjonesd/hrs-selection/blob/master/hrs-selection.pdf).
A quick informal intro is [here](https://open.substack.com/pub/wyclif/p/work-in-progress-on-natural-selection?r=2k7zr&utm_campaign=post&utm_medium=web).
# To reproduce
You'll need [quarto](https://quarto.org) and [R](https://r-project.org).
You'll need data from the RAND HRS, including genetic data, and the PGI repository: see the `setup` chunk in `hrs-selection.qmd` for details on where to put them. We can help if you are stuck.
Clone this repository with `git clone https://github.com/hughjonesd/hrs-selection`.
Start R within the root directory. It will install [renv](https://rstudio.github.io/renv/articles/renv.html)
and the required R libraries. Then from the shell,
run `quarto render hrs-selection.qmd` to produce the PDF.