This repository contains functions to weight and analyze weighted survey data. Read my package tutorial here.
I started writing this package to polish up my R skills, to write my first R package, and to develop a more intuitive interface (for me) for working with survey data (as good as the survey
package is, I've never found the interface easy to use).
This code is intended for my own learning purposes, but feel free to use it. All mistakes are my own.
Inspiration for this package comes from Pew Research Center, the Cooperative Congressional Election Study, Data Science for Political Campaigns, and the survey
package.
Installation
devtools::install_github('AnthonyRentsch/surveyutils')
Supported techniques
- (Un)weighted sample distributions
- Raking
- Matching
- Cell weighting
- Propensity weighting
- Combinations of matching, raking, and propensity weighting
TODO
- Entropy balancing (example)