misc-research/Banking-the-Unbanked-through-Cryptocurrency/README.md

33 lines
2.2 KiB
Markdown

## Hard Data on Banking the Unbanked through Cryptocurrency
### Instructions
Install the necessary R packages:
```R
install.packages(c("data.table", "readstata13", "ggplot2", "stargazer",
"huxtable", "rvest", "ggcorrplot", "grid", "remotes"))
remotes::install_github("dracula/ggplot2")
```
Download the survey data files and unpack them into the appropriate directories in the `raw-data` directory:
- [SHED 2021-2023 STATA files](https://doi.org/10.17016/datasets.002)
- [SPACE 2022](https://web.archive.org/web/20230922180752/https://www.ecb.europa.eu/stats/ecb_surveys/space/html/index.en.html#dd)
- [SDCPC 2015 R data file](https://www.atlantafed.org/banking-and-payments/consumer-payments/survey-of-consumer-payment-choice/2015-survey)
- [SDCPC 2016 R data file](https://www.atlantafed.org/banking-and-payments/consumer-payments/survey-of-consumer-payment-choice/2016-survey)
- [SDCPC 2017 R data file](https://www.atlantafed.org/banking-and-payments/consumer-payments/survey-of-consumer-payment-choice/2017-survey)
- [SDCPC 2018 R data file](https://www.atlantafed.org/banking-and-payments/consumer-payments/survey-of-consumer-payment-choice/2018-survey#Tab3)
- [SDCPC 2019 R data file](https://www.atlantafed.org/banking-and-payments/consumer-payments/survey-of-consumer-payment-choice/2019-survey#Tab3)
- [SDCPC 2020 R data file](https://www.atlantafed.org/banking-and-payments/consumer-payments/survey-of-consumer-payment-choice/2020-survey#Tab3)
- [SDCPC 2021 R data file](https://www.atlantafed.org/banking-and-payments/consumer-payments/survey-and-diary-of-consumer-payment-choice/2021-survey-and-diary#Tab3)
- [SDCPC 2022 individual-level R data file](https://www.atlantafed.org/banking-and-payments/consumer-payments/survey-and-diary-of-consumer-payment-choice/2022-survey-and-diary#Tab3)
- [SDCPC 2023 individual-level R data file](https://www.atlantafed.org/banking-and-payments/consumer-payments/survey-and-diary-of-consumer-payment-choice/2023-survey-and-diary#Tab3)
Run `SHED-data-prep.R`, `SPACE-data-prep.R`, and `SDCPC-data-prep.R` to produce the processed data files and save them in the `processed-data` directory.
Then run `Banking-the-Unbanked-through-Cryptocurrency.Rmd` in RStudio to produce the PDF. You may have to install some LaTeX packages.