Skip to content

Designing and Analyzing Two-Stage Randomized Experiments

0packages depend
2.2Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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

CRAN checks
13OK
Slowest check: 1.8 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.0.1
READMEYes · 11 wordsVignettesYes · 2 · dynamicNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
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

2.2K
CRAN downloads in the past year
Rank #21,979 · ~6/day · ~180/mo
Daily download trend is not available in this view yet.
25430 days
60090 days
2.2K1 year
Compare downloads with other packages →
Also on62 r2u4 autocran

Repository

5Stars
0Forks
0Open issues
0Open PRs
1Releases
68Commits
5Commit identities
License file reads as MIT · DESCRIPTION declares GPL (>= 2) · 68 commits · Last activity 2022-10-20
Responsiveness
not measured
PracticesBeta

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.

Continuous integration (1)
Travis CI (config file)
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)

Installing RCT2 adds 63 packages (33 with compiled code, 58 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, doBy 4.3 MB.

Depends (1)
R >= 3.1.0
Imports (4)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (3)
Author, Maintainer since 0.0.1 (2022)
Releases (1)
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.0.1Latest
    2022-10-18 · current release
  • R
    R 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")
Imai, K., Huang, K., & Jiang, Z. (2022). RCT2: Designing and Analyzing Two-Stage Randomized Experiments (Version 0.0.1) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for RCT2 version 0.0.1 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy