Designing and Analyzing Two-Stage Randomized Experiments
Overview
Provides various statistical methods for designing and analyzing two-stage randomized controlled trials using the methods developed by Imai, Jiang, and Malani (2021) doi:10.1080/01621459.2020.1775612 and (2022+) doi:10.48550/arXiv.2011.07677. The package enables the estimation of direct and spillover effects, conduct hypotheses tests, and conduct sample size calculation for two-stage randomized controlled trials.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 10
- Examples that run
- 100%5 run in a plain check
- Exported functions with examples
- 71%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 80%
Downloads
Repository
1 development-tooling and community-health practice detected across 1 family in the upstream repository
Checks run against github.com/kosukeimai/rct2 on 2026-10-18.
Dependencies
Code & Tests
Datasets
People & History
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.0.1Latest2022-10-18 · current release
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2022-10-18
- Total releases
- 1 / 4 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.1.0
- Bundled data
- 173 KB / 3 files
- Download size
- 198 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("RCT2")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.