estimatr - Fast Estimators for Design-Based Inference
Fast procedures for a small set of commonly-used, design-appropriate estimators with robust standard errors and confidence intervals. Includes estimators for linear regression, instrumental variables regression, difference-in-means, Horvitz-Thompson estimation, and regression improving precision of experimental estimates by interacting treatment with centered pre-treatment covariates introduced by Lin (2013) <doi:10.1214/12-AOAS583>. Fixed effects are absorbed by alternating projections rather than by dummy expansion, and Horvitz-Thompson variance is computed from the randomization declaration.
Last updated
cpp
14.42 score 135 stars 20 dependents 3.2k scripts 17k downloadsrandomizr - Easy-to-Use Tools for Common Forms of Random Assignment and Sampling
Generates random assignments for common experimental designs and random samples for common sampling designs.
Last updated
cpp
11.85 score 38 stars 17 dependents 639 scripts 7.1k downloadsfabricatr - Tidyverse-First Data Fabrication
Helps you imagine your data before you collect it. Builds a data frame one column at a time, with hierarchical levels, cross-classified levels, potential outcomes, and draws with a target intra-cluster correlation, so that a research design can be simulated and diagnosed before any data exist. Version 2.0 is a rewrite of the same public API on 'dplyr', 'tibble', 'purrr', and 'rlang'.
Last updated
11.15 score 93 stars 8 dependents 510 scripts 3.5k downloadsDeclareDesign - A Tidyverse-First Research Design Declaration and Diagnosis Tool
Declares, simulates, diagnoses and redesigns research designs. A design is declared as a model, an inquiry, a data strategy and an answer strategy, then simulated with 'purrr' and diagnosed with 'dplyr'. Version 2.0 is a ground-up rewrite of the package on tidyverse conventions.
Last updated
designresearchsimulations
9.30 score 116 stars 2 dependents 3.1k downloadsDesignLibrary - A Library of Declared Designs
A lightweight library of research designs declared with 'DeclareDesign'. Designs live as self-contained R files; editable parameters are read from the design itself. Optional YAML metadata adds labels, categories, tips, and book aliases. Includes maintainer tools to index, audit, and bake small diagnosis previews, plus a bundled Shiny browser (`designs_shiny_app()`).
Last updated
7.54 score 30 stars 81 scripts 1.1k downloads
rdss - Companion Datasets and Functions for Research Design in the Social Sciences
Helper functions to accompany the Blair, Coppock, and Humphreys (2023) "Research Design in the Social Sciences: Declaration, Diagnosis, and Redesign" <https://book.declaredesign.org>. 'rdss' includes datasets, helper functions, and plotting components to enable use and replication of the book.
Last updated
3.98 score 1 stars 1.2k downloads