Declare and Diagnose Research Designs

Researchers can characterize and learn about the properties of research designs before implementation using `DeclareDesign`. Ex ante declaration and diagnosis of designs can help researchers clarify the strengths and limitations of their designs and to improve their properties, and can help readers evaluate a research strategy prior to implementation and without access to results. It can also make it easier for designs to be shared, replicated, and critiqued.


DeclareDesign 0.18.0

  • Add compare_designs functions to compare the code and output of designs side-by-side.
  • Bug fixes

DeclareDesign 0.16.0

  • Add draw_assignment function to draw an assignment vector(s) given data
  • Add draw_sample function to draw a sample or multiple sequential samples from data
  • Rewrite draw_data to optionally take a data argument. draw_data now can be used to draw data for the full design, or for subsets of it. start and end flags are added to select which portions of the design to run
  • Bug fixes

DeclareDesign 0.14.0

  • Improved generics interoperability
  • Bug fixes

DeclareDesign 0.12.0

  • Add ability to use get_estimates with data, useful for example for getting estimates after data is collected for a study. To draw estimates or estimands from simulated data, now use renamed draw_estimates and draw_estimands functions.
  • Documentation improvements
  • Bug fixes

DeclareDesign 0.10.0

  • First CRAN version

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.28.0 by Graeme Blair, 2 months ago,

Report a bug at

Browse source code at

Authors: Graeme Blair [aut, cre] , Jasper Cooper [aut] , Alexander Coppock [aut] , Macartan Humphreys [aut] , Neal Fultz [aut]

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports rlang, generics, methods

Depends on randomizr, fabricatr, estimatr

Suggests testthat, knitr, rmarkdown, AER, diffobj, dplyr, data.table, tibble, ggplot2, future.apply, broom, MASS, Matching, betareg, biglm, gam, sf, reshape2, DesignLibrary, coin, margins

Depended on by DesignLibrary.

Suggested by CausalQueries.

See at CRAN