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

Wrap estimators from other packages for use in design steps such as declare_estimator()

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-squared from a random-effects meta-analysis

Helpers

best_predictor()
Find the covariate that best predicts treatment effect heterogeneity
conjoint_assignment()
Conjoint experiment assignment handler: conducts complete random assignment of all attribute levels
conjoint_inquiries()
Conjoint experiment inquiries handler
conjoint_measurement()
Conjoint experiment measurement handler: records which profile in each task is chosen
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

Return model fits from other packages as tidy data frames

tidy(<amce>)
Tidy estimates from the amce estimator
tidy(<rdrobust>)
Tidy helper function for rdrobust function
tidy_stan()
Tidy results from a stanreg regression (deprecated)

Data

Datasets used in the book’s examples and exercises

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 Clingingsmith, Khwaja, and Kremer (2009), Quarterly Journal of Economics
fairfax
Shapefile of Fairfax County, Virginia, voting precincts
foos_etal
Replication data for Foos, John, Muller, and Cunningham (2021), Journal of Politics (derived from Dataverse 10.7910/DVN/NDPXND)
la_voter_file
Voter file sample for Los Angeles County
lapop_brazil
Teaching data based on the 2018/19 LAPOP AmericasBarometer survey of Brazil

Utilities

Format numbers for tables, and the book’s ggplot theme and palette

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 in the Social Sciences
dd_palette()
Color palettes used in the book Research Design in the Social Sciences
hex_add_alpha()
Add alpha transparency to a color defined in hexadecimal