Code
BARP (MRP - MR + BART = BARP)
This package predicts opinion at a given level of geography, even if the original survey was not representative at this level. It augments multilevel regression and poststratification (MRP) by replacing the multilevel model with either Bayesian Additive Regression Trees (BART, found to be best-in-class when compared to multilevel models and other regularization algorithms) or any one of the 43 regularization methods included in the SuperLearner package. This provides a more accurate estimate of opinion as a function of observables and insulates the researcher from missing data and specification error. The user must provide both a survey dataset and census dataset with identically labeled covariates. The package can be installed via devtools by running devtools::install_github('jbisbee1/BARP')
.
QualtricsCreatoR
This package builds a Qualtrics survey in R using a provided list of survey questions and choices. The resulting .txt file can be imported into Qualtrics, facilitating the rapid creation of large-scale surveys. The package is inspired by Sean Murphy's blog post on the same topic. The package can be installed via devtools by running devtools::install_github('jbisbee1/QualtricsCreatoR')
.
dyadRobust
This package estimates cluster-robust standard errors for dyadic data using multiway decomposition as decsribed in Aronow, Peter M., Cyrus Samii, and Valentina A. Assenova. "Cluster-robust variance estimation for dyadic data." Political Analysis 23.4 (2015): 564-577. It was developed by myself and Pedro Rodriguez The package can be installed via devtools by running devtools::install_github('jbisbee1/dyadRobust')
.