Package: RCT2 0.0.1

RCT2: Designing and Analyzing Two-Stage Randomized Experiments

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.

Authors:Karissa Huang [aut], Zhichao Jiang [aut], Kosuke Imai [aut, cre]

RCT2_0.0.1.tar.gz
RCT2_0.0.1.zip(r-4.7)RCT2_0.0.1.zip(r-4.6)RCT2_0.0.1.zip(r-4.5)
RCT2_0.0.1.tgz(r-4.6-any)RCT2_0.0.1.tgz(r-4.5-any)
RCT2_0.0.1.tar.gz(r-4.7-any)RCT2_0.0.1.tar.gz(r-4.6-any)
RCT2_0.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
RCT2/json (API)

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

Bug tracker:https://github.com/kosukeimai/rct2/issues

Datasets:
  • india - Replication Data for: Causal Inference with Interference and Noncompliance in Two-Stage Randomized Experiments.
  • jd - Replication Data for: Statistical Inference and Power Analysis for Direct and Spillover Effects in Two-Stage Randomized Experiments

On CRAN:

Conda:

4.70 score 5 stars 5 scripts 134 downloads 7 exports 72 dependencies

Last updated from:6b5fcc7253. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK148
source / vignettesOK210
linux-release-x86_64OK136
macos-release-arm64OK93
macos-oldrel-arm64OK112
windows-develOK82
windows-releaseOK79
windows-oldrelOK79
wasm-releaseOK122

Exports:CADEparamregCADErandCADEregCalAPOcalparaCalsamplesizeTest2SRE

Dependencies:abindAERbackportsbootbroomcarcarDataclicolorspacecowplotcpp11DerivdoBydplyrfarverforecastFormulafracdiffgenericsggplot2gluegtableisobandlabelinglatticelifecyclelme4lmtestmagrittrMASSMatrixMatrixModelsmgcvmicrobenchmarkminqamodelrnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigpurrrquadprogquantregR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasrlangS7sandwichscalesSparseMstringistringrsurvivaltibbletidyrtidyselecttimeDateurcautf8vctrsviridisLitewithrzoo

Causal Inference with Inteference

Rendered fromspillover_vignette.Rmdusingknitr::rmarkdownon May 28 2026.

Last update: 2022-10-15
Started: 2020-08-31

Statistical Inference and Power Analysis for Direct and Spillover Effects

Rendered frominterference_vignette.Rmdusingknitr::rmarkdownon May 28 2026.

Last update: 2022-10-15
Started: 2020-11-30