Here are little chunks of R code to quickly access survey datasets. Some of the linked datasets are provided on an "as-is" basis: typically, you might want to check the official ANES files rather than rely on the extracts linked to below. This also applies to data extracts bundled in packages.
The code occasionally calls the download
and foreign
packages, respectively to get files from HTTPS sources and to deal with foreign formats. The Gelman and Hill replication also uses plyr
and ggplot2
, but check the original code for identical functions written in base R.
- Anthony J. Damico's
usgsd
repository of scripts for survey microdata analysis; ref.; [how it compares](https://github.com/ajd