Skip to contents

Package

rdss-package rdss
rdss package

Replication tools

get_rdss_file()
Download a replication file from the dataverse archive for Research Design in the Social Sciences: Declaration, Diagnosis, and Redesign

Tidy helpers

These functions declare research design steps

causal_forest_handler()
Tidy helper function for causal_forest function
rma_helper()
Helper function for rma function in metafor package
rdrobust_helper()
Helper function for using rdrobust as a model in declare_estimator
post_stratification_helper()
Post stratification estimator helper
did_multiplegt_tidy()
Tidy helper function for did_multiplegt
estimator_AS_tidy()
Tidy helper function for estimator_AS function
process_tracing_estimator()
Process tracing estimator
rma_mu_tau()
Extract mu and tau parameters from rma model fit

Helpers

best_predictor()
Best predictor function from causal_forest
conjoint_assignment()
Conjoint experiment assignment handler: conducts complete random assignment of all attribute levels
conjoint_inquiries()
Conjoint experiment inquiries handler
conjoint_measurement()
Conjoint experiment assignment handler: conducts complete random assignment of all attribute levels
get_exposure_AS()
Helper function to obtain the observed exposure for the Aronow and Samii estimator
lag_by_group()
Generate lags in grouped data

Tidiers

These functions declare research design steps

tidy(<amce>)
Tidy estimates from the amce estimator
tidy(<rdrobust>)
Tidy helper function for rdrobust function

Data

These functions operate on declared designs

bonilla_tillery
Replication data for Bonilla and Tillery (2020), American Political Science Review (obtained from Dataverse 10.7910/DVN/IUZDQI)
clingingsmith_etal
Replication data for David Clingingsmith, Asim Ijaz Khwaja, Michael Kremer (2020): Estimating the Impact of The Hajj: Religion and Tolerance in Islam's Global Gathering. The Quarterly Journal of Economics, Volume 124, Issue 3, August 2009, Pages 1133-1170
fairfax
Shapefile of Fairfax County, Virginia, voting precincts
foos_etal
Replication data for Foos, John, Muller, and Cunningham (2021), Journal of Politics (derived from from Dataverse 10.7910/DVN/NDPXND)
la_voter_file
Voter file sample for Los Angeles County
lapop_brazil
Data used in student exercises for RDSS based on LAPOP survey of Brazil in 2018

Utilities

These functions operate on declared designs

add_parens()
Add parentheses around standard error estimates
format_num()
Round and pad a number to a specific decimal place
make_interval_entry()
Format confidence intervals for nice printing
make_se_entry()
Format estimates and standard errors for nice printing
theme_dd()
ggplot Theme used in the book "Research Design: Declare, Diagnose, Redesign" (Blair, Coppock, Humphreys)
dd_palette()
Access color palette used in the book "Research Design: Declare, Diagnose, Redesign" (Blair, Coppock, Humphreys)
hex_add_alpha()
Add alpha transparency to a color defined in hexadecimal
tidy_stan()
Tidy results from a stanreg regresion and exponentiate the estimated coefficient