Reproducible code for paper on understanding gender equity in the pandemic via examining time-use habits.
We model the secular and quarterly trends to predict what would have occurred in the absence of the pandemic, contrasting this to what indeed happened. Our analyses consider aggregate and individual impacts, using methods of sequence analysis, clustering, and matching. Among our results, we find that the division of childcare responsibilities did not become more equitable during the pandemic.
.
├── analysis/ # Analysis scripts
├── data/ # Cleaned data
├── inputs/ # Raw input data
├── outputs/ # Formal write-ups and figures
├── R/ # Functions for cleaning and analysis
├── renv/ # Storage for renv
├── _targets/ # Storage for targets
├── tests/ # Unit tests
├── _targets.R # targets pipeline
├── run.R # Run the targets pipeline from R
├── run.sh # Run the targets pipeline from shell
└── README.md
To reproduce:
- Open
ATUS-matching.Rproj
. Installrenv
viainstall.packages('renv')
and then runrenv::restore()
- Download, clean, and consolidate the data:
run.R
. Note: this downloads a few data files including the 2003-2021 multi-year microdata from the BLS (~2GB) and saves theminputs/ATUS-2003-2021/
- Run the analyses
analysis/timeseries.R
analysis/matching.R
analysis/sequence_analysis.R
If you encounter an issue reproducing, please raise an issue on GitHub.
See also: ATUS repo