Package: DeclareDesign 2.0.0.9000

Alexander Coppock

DeclareDesign: 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.

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

DeclareDesign_2.0.0.9000.tar.gz
DeclareDesign_2.0.0.9000.zip(r-4.7-any)DeclareDesign_2.0.0.9000.zip(r-4.6-any)DeclareDesign_2.0.0.9000.zip(r-4.5-any)
DeclareDesign_2.0.0.9000.tgz(r-4.6-any)DeclareDesign_2.0.0.9000.tgz(r-4.5-any)
DeclareDesign_2.0.0.9000.tar.gz(r-4.7-any)DeclareDesign_2.0.0.9000.tar.gz(r-4.6-any)
DeclareDesign_2.0.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
DeclareDesign/json (API)

# Install 'DeclareDesign' in R:
install.packages('DeclareDesign', repos = c('https://declaredesign.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/declaredesign/declaredesign/issues

Pkgdown/docs site:https://declaredesign.org

On CRAN:

Conda:

designresearchsimulations

9.30 score 116 stars 2 packages 3.1k downloads 1 mentions 61 exports 28 dependencies

Last updated from:f02822b8cf. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK163
source / vignettesOK195
linux-releaseOK171
macos-releaseOK101
macos-oldrelOK127
windows-develOK150
windows-releaseOK127
windows-oldrelOK111
wasm-releaseOK112

Exports:cite_designcompare_design_codecompare_design_datacompare_design_estimatescompare_design_inquiriescompare_design_summariescompare_designscompare_diagnosesdeclare_assignmentdeclare_diagnosandsdeclare_estimanddeclare_estimandsdeclare_estimatordeclare_inquiriesdeclare_inquirydeclare_measurementdeclare_modeldeclare_notesdeclare_parametersdeclare_populationdeclare_potential_outcomesdeclare_revealdeclare_samplingdeclare_stepdeclare_testdefault_diagnosandsdelete_stepdesign_notesdesign_parametersdiagnose_designdiagnose_designsdiagnose_simulationsdraw_datadraw_estimanddraw_estimandsdraw_estimatesexpand_designget_diagnosandsget_estimatesget_simulationsinsert_steplabel_estimatorlabel_testmerge_estimates_inquiriesmodel_handlerpop.varprint_coderedesignreplace_stepreshape_diagnosisrun_designselect_diagnosandsset_citationset_diagnosandssimulate_designsimulate_designstidytidy_estimatortidy_trytidy.diagnosisvars

Dependencies:backportsbroomclicpp11dplyrestimatrfabricatrFormulagenericsgluelifecyclemagrittrpillarpkgconfigpurrrR6randomizrRcppRcppEigenrlangstringistringrtibbletidyrtidyselectutf8vctrswithr

DeclareDesign 2.0: what changes, what does not, and why
The short version | Getting it | What does not change | What changes, and why | In DeclareDesign 2.0 | redesign() reaches a name the design reads, not a number it writes down | inquiry = is the quoted label of the inquiry | make_groups = vars(...) is gone; group with group_by() | Dotted argument names: .design, .expand, .method, and .summary | draw_data() no longer runs part of a design on supplied data | reshape_diagnosis() reshapes; select columns afterwards | expand_design() is deprecated | set_diagnosands() is deprecated | Step-modification functions are deprecated | The code-comparison functions are removed; compare_diagnoses() is not | declare_potential_outcomes(), declare_reveal(), and declare_estimators() are gone | What comes back has one more column, in a different order | An estimator that fails on one draw is recorded, not fatal | In fabricatr 2.0 | Porting an existing script | What is new | declare_parameters() and declare_notes() | A design is a value | Step-level draws | Variance decomposition | Parallel execution | summary() says what each step did | Progress | Estimator arguments pass as written | Speed | Why rewrite at all | Current status | Bugs reported against 1.1.1 that 2.0 fixes

Last update: 2026-10-26
Started: 2026-10-26

Getting started
Declaration | Diagnosis | Redesign | A design is code

Last update: 2026-10-26
Started: 2026-10-26

Readme and manuals

Help Manual

Help pageTopics
DeclareDesign: A Tidyverse-First Research Design Declaration and Diagnosis ToolDeclareDesign-package DeclareDesign
Combine design steps into a design+.dd
Retrieve a design's citationcite_design
Defunct comparison helperscompare_designs compare_design_code compare_design_data compare_design_estimates compare_design_inquiries compare_design_summaries print_code
Compare the diagnosands of two designscompare_diagnoses
Declare an assignment proceduredeclare_assignment
Declare diagnosandsdeclare_diagnosands
Declare an estimatordeclare_estimator
Declare an inquirydeclare_estimand declare_estimands declare_inquiries declare_inquiry
Declare measurementdeclare_measurement
Declare the data-generating modeldeclare_model
Declare quantities computed while a design runsdeclare_notes
Declare the parameters of a designdeclare_parameters
Deprecated alias for 'declare_model()'declare_population
Declare a sampling proceduredeclare_sampling
Declare a custom data-handling stepdeclare_step
Declare a hypothesis testdeclare_test
Defunct step declarations from DeclareDesign 1.xdeclare-defunct declare_potential_outcomes declare_reveal
Default diagnosandsdefault_diagnosands
Delete a step from a design (deprecated)delete_step
Report the notes a design takesdesign_notes
Report the parameters a design can be redesigned ondesign_parameters
Diagnose a designdiagnose_design diagnose_designs
Diagnose a precomputed simulations tablediagnose_simulations
Draw the realized data from a designdraw_data
Draw the realized estimandsdraw_estimand draw_estimands
Draw the realized estimatesdraw_estimates
Build a family of designs from a designer function (deprecated)expand_design
Format a diagnosis for displayformat.diagnosis reshape_diagnosis
Get the diagnosands table from a diagnosisget_diagnosands
Get estimates for a fixed datasetget_estimates
Get the simulations table from a diagnosisget_simulations
Insert a step into a design (deprecated)insert_step
Wrap a custom function as a labeled estimatorlabel_estimator label_test
Deprecated alias for 'label_estimator()'model_handler tidy_estimator
Population variancepop.var
Print a diagnosand comparisonprint.compared_diagnoses
Print a designprint.design
Print a design stepprint.design_step
Print a diagnosisprint.diagnosis
Print the objects table, one row per nameprint.objects
Redesignredesign
Replace a step in a design (deprecated)replace_step
Execute a design end-to-endrun_design
Build a diagnosands step from a set of named diagnosandsselect_diagnosands
Attach a citation to a designset_citation
Attach diagnosands to a design (deprecated)set_diagnosands
Simulate one or more designssimulate_design simulate_designs
Summarize a designsummary.design
Summarize a diagnosissummary.diagnosis
Tidy a model fit, with a fallbacktidy_try
Tidy a diagnosistidy.diagnosis
Capture variables as quosuresvars