Skip to content

RCT2

0.0.1

Designing and Analyzing Two-Stage Randomized Experiments

0packages depend
2.1Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Kosuke ImaiFirst published 2022-10-181 releasesCRAN page ↗GitHub ↗

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: 2.2 min · r-devel-linux-x86_64-fedora-gcc
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
Yes
Vignettes
Yes
README
4
Dependencies · direct
Check history
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Downloads

2.1K
CRAN downloads in the past year
Rank #21,192 · ~6/day · ~177/mo
Daily download trend is not available in this view yet.
23530 days
56490 days
2.1K1 year
Compare downloads with other packages →
Also on91 r2u17 autocran

Repository

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.1.0
Imports (4)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 1,504 (68%)Rd 469 (21%)Vignettes 228 (10%)
Code characteristics
Object systems
S35
Cyclomatic complexity
1.0 median / 14 max
Documented parameters
100%

Test coverage

Line coverage

Expression

Tests / Examples

Functions

20 7 exported

Complexity

3.3 avg / 14 max

Call network

20 nodes / 4 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (3)
Author, Maintainer
Package Timeline

1 release. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.0.1Latest
    2026-03-10 · current release
  • R
    R 4.5.0 released · 2025-04-11

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
Installed size
not tracked yet
With dependencies
not tracked yet