DeclareDesign
Declare and Diagnose Research Designs
v1.1.0
·
Oct 15, 2025
·
MIT + file LICENSE
Description
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.
Downloads
2.6K
Last 30 days
2476th
6K
Last 90 days
6K
Last year
Trend: -23.1% (30d vs prior 30d)
CRAN Check Status
1
ERROR
13
OK
Show all 14 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-macos-arm64 | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | ERROR |
Check details (14 non-OK)
OK
r-devel-linux-x86_64-debian-clang
*
OK
r-devel-linux-x86_64-debian-gcc
*
OK
r-devel-linux-x86_64-fedora-clang
*
OK
r-devel-linux-x86_64-fedora-gcc
*
OK
r-devel-macos-arm64
*
OK
r-devel-windows-x86_64
*
OK
r-oldrel-macos-arm64
*
OK
r-oldrel-macos-x86_64
*
OK
r-oldrel-windows-x86_64
*
OK
r-patched-linux-x86_64
*
OK
r-release-linux-x86_64
*
OK
r-release-macos-arm64
*
OK
r-release-macos-x86_64
*
ERROR
r-release-windows-x86_64
tests
Running 'testthat.R' [86s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(DeclareDesign)
Loading required package: randomizr
Loading required package: fabricatr
Loading required package: estimatr
>
> library(AER)
Loading required package: car
Loading required package: carData
Loading required package: lmtest
Loading required package: zoo
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
Loading required package: sandwich
Loading required package: survival
> library(betareg)
> library(biglm)
Loading required package: DBI
> library(coin)
Attaching package: 'coin'
The following object is masked from 'package:testthat':
expectation
> library(future.apply)
Loading required package: future
Attaching package: 'future'
The following object is masked from 'package:survival':
cluster
The following object is masked from 'package:lmtest':
reset
> library(gam)
Loading required package: splines
Loading required package: foreach
Loaded gam 1.22-7
> library(Matching)
Loading required package: MASS
##
## Matching (Version 4.10-15, Build Date: 2024-10-14)
## See https://www.jsekhon.com for additional documentation.
## Please cite software as:
## Jasjeet S. Sekhon. 2011. ``Multivariate and Propensity Score Matching
## Software with Automated Balance Optimization: The Matching package for R.''
## Journal of Statistical Software, 42(7): 1-52.
##
> library(reshape2)
> library(sf)
Linking to GEOS 3.13.1, GDAL 3.11.4, PROJ 9.7.0; sf_use_s2() is TRUE
>
> test_check("DeclareDesign")
Saving _problems/test-bootstrap-diagnosands-50.R
Error : No estimates or inquiries were declared, so design cannot be simulated.
[ FAIL 1 | WARN 0 | SKIP 7 | PASS 646 ]
══ Skipped tests (7) ═══════════════════════════════════════════════════════════
• On CRAN (1): 'test-reshape-diagnosis.R:123:3'
• test requires updated DesignLbrary (6): 'test-design-library.R:7:3',
'test-design-library.R:37:3', 'test-design-library.R:46:3',
'test-design-library.R:136:3', 'test-simulate-design.R:121:3',
'test-simulate-design.R:137:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-bootstrap-diagnosands.R:50:3'): Bootstrap ses close ──────────
Expected `d$diagnosands_df$`se(mean_estimand)`[1] < 0.4` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
[ FAIL 1 | WARN 0 | SKIP 7 | PASS 646 ]
Error:
! Test failures.
Execution halted
Check History
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 9, 2026
ERROR
r-release-windows-x86_64
tests
Running 'testthat.R' [86s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(DeclareDesign) Loading required package: randomizr Loading required package: fabricatr Loading required package: estimatr > > library(AER) Loading required package: car Loading required package: carData Loading required package: lmtest Loading required package: zoo Attaching package: 'zoo' The following objects are masked from 'package:base'
Reverse Dependencies (4)
depends
suggests
Dependency Network
Version History
new
1.1.0
Mar 9, 2026