{
  "_id": "6a17dd76acfb0bcc41d9c9d0",
  "Package": "RCT2",
  "Version": "0.0.1",
  "Date": "2022-10-16",
  "Title": "Designing and Analyzing Two-Stage Randomized Experiments",
  "Authors@R": "c(person(\"Karissa\", \"Huang\", email = \"krhuang@berkeley.edu\", role = c(\"aut\")), \nperson(\"Zhichao\", \"Jiang\", email = \"zhichaojiang@umass.edu\", role = c(\"aut\")),\nperson(\"Kosuke\", \"Imai\", email = \"imai@harvard.edu\", role = c(\"aut\", \"cre\"))\n)",
  "Maintainer": "Kosuke Imai <imai@harvard.edu>",
  "Description": "Provides various statistical methods for designing and\nanalyzing two-stage randomized controlled trials using the\nmethods developed by Imai, Jiang, and Malani (2021)\n<doi:10.1080/01621459.2020.1775612> and (2022+)\n<doi:10.48550/arXiv.2011.07677>.  The package enables the\nestimation of direct and spillover effects, conduct hypotheses\ntests, and conduct sample size calculation for two-stage\nrandomized controlled trials.",
  "License": "GPL (>= 2)",
  "URL": "https://github.com/kosukeimai/RCT2",
  "BugReports": "https://github.com/kosukeimai/RCT2/issues",
  "RoxygenNote": "7.2.1",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "cmake make libicu-dev",
  "Repository": "https://kosukeimai.r-universe.dev",
  "Date/Publication": "2022-10-20 02:02:23 UTC",
  "RemoteUrl": "https://github.com/kosukeimai/rct2",
  "RemoteRef": "HEAD",
  "RemoteSha": "6b5fcc7253bba0e242d175b37cf07b00ce373d7f",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-28 06:10:06 UTC",
    "User": "root"
  },
  "Author": "Karissa Huang [aut],\nZhichao Jiang [aut],\nKosuke Imai [aut, cre]",
  "MD5sum": "49859592c24beaea2da2db56e7553b02",
  "_user": "kosukeimai",
  "_type": "src",
  "_file": "RCT2_0.0.1.tar.gz",
  "_fileid": "a66df07f0a37b90b124bd9f8c020e0b1a730b0a77427cec45009f9e1eca9757d",
  "_filesize": 321770,
  "_sha256": "a66df07f0a37b90b124bd9f8c020e0b1a730b0a77427cec45009f9e1eca9757d",
  "_created": "2026-05-28T06:10:06.000Z",
  "_published": "2026-05-28T06:15:18.020Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78233980700,
      "time": 148,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7258914265"
    },
    {
      "job": 78233980533,
      "time": 136,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7258911796"
    },
    {
      "job": 78233980528,
      "time": 112,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7258942040"
    },
    {
      "job": 78233980607,
      "time": 93,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7258942962"
    },
    {
      "job": 78233586740,
      "time": 210,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7258881673"
    },
    {
      "job": 78233980525,
      "time": 122,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7258908679"
    },
    {
      "job": 78233980604,
      "time": 82,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7258899877"
    },
    {
      "job": 78233980561,
      "time": 79,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7258899317"
    },
    {
      "job": 78233980582,
      "time": 79,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7258899553"
    }
  ],
  "_buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/26557878049",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/kosukeimai/rct2",
  "_commit": {
    "id": "6b5fcc7253bba0e242d175b37cf07b00ce373d7f",
    "author": "Kosuke Imai <Imai@Harvard.Edu>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Update README.md",
    "time": 1666231343
  },
  "_maintainer": {
    "name": "Kosuke Imai",
    "email": "imai@harvard.edu",
    "login": "kosukeimai",
    "description": "",
    "uuid": 6608243
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.1.0",
      "role": "Depends"
    },
    {
      "package": "sandwich",
      "role": "Imports"
    },
    {
      "package": "AER",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "quadprog",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "kosukeimai",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 5,
  "_contributors": [
    {
      "user": "kosukeimai",
      "count": 23,
      "uuid": 6608243
    },
    {
      "user": "zhichaoj-git",
      "count": 2,
      "uuid": 17644216
    }
  ],
  "_userbio": {
    "uuid": 6608243,
    "type": "user",
    "name": "Kosuke Imai"
  },
  "_downloads": {
    "count": 134,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/RCT2"
  },
  "_devurl": "https://github.com/kosukeimai/rct2",
  "_searchresults": 5,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/RCT2.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/kosukeimai/rct2",
  "_realowner": "kosukeimai",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.1",
      "date": "2022-10-18"
    }
  ],
  "_exports": [
    "CADEparamreg",
    "CADErand",
    "CADEreg",
    "CalAPO",
    "calpara",
    "Calsamplesize",
    "Test2SRE"
  ],
  "_datasets": [
    {
      "name": "india",
      "title": "Replication Data for: Causal Inference with Interference and Noncompliance in Two-Stage Randomized Experiments.",
      "object": "india",
      "file": "india.csv.gz",
      "class": [
        "data.frame"
      ],
      "fields": [
        "X",
        "id",
        "DistrictId",
        "Z",
        "A",
        "D",
        "Y"
      ],
      "rows": 10072,
      "table": true,
      "tojson": true
    },
    {
      "name": "jd",
      "title": "Replication Data for: Statistical Inference and Power Analysis for Direct and Spillover Effects in Two-Stage Randomized Experiments",
      "object": "jd",
      "file": "jd.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "anonale",
        "tempsc_av",
        "assigned",
        "pct0",
        "cdi",
        "cdd6m",
        "emploidur",
        "tempsc",
        "salaire"
      ],
      "rows": 13103,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "CADEparamreg",
      "title": "Regression-based method for the ITT effects and the complier average direct effect/spillover effect",
      "topics": [
        "CADEparamreg"
      ]
    },
    {
      "page": "CADErand",
      "title": "Randomization-based method for the complier average direct effect and the complier average spillover effect",
      "topics": [
        "CADErand"
      ]
    },
    {
      "page": "CADEreg",
      "title": "Regression-based method for the complier average direct effect",
      "topics": [
        "CADEreg"
      ]
    },
    {
      "page": "CalAPO",
      "title": "Point Estimation and Variance for the unit-level direct effect (ADE), marginal direct effect (MDE), and unit level spillover effect (ASE)",
      "topics": [
        "CalAPO"
      ]
    },
    {
      "page": "calpara",
      "title": "Sample size parameter calculations for detecting a specific alternative",
      "topics": [
        "calpara"
      ]
    },
    {
      "page": "Calsamplesize",
      "title": "Sample size calculations for detecting a specific alternative",
      "topics": [
        "Calsamplesize"
      ]
    },
    {
      "page": "india",
      "title": "Replication Data for: Causal Inference with Interference and Noncompliance in Two-Stage Randomized Experiments.",
      "topics": [
        "india"
      ]
    },
    {
      "page": "jd",
      "title": "Replication Data for: Statistical Inference and Power Analysis for Direct and Spillover Effects in Two-Stage Randomized Experiments",
      "topics": [
        "jd"
      ]
    },
    {
      "page": "print.regression",
      "title": "Print Method for the RCT2 Package",
      "topics": [
        "print.regression"
      ]
    },
    {
      "page": "Test2SRE",
      "title": "Hypothesis testing for three null hypotheses",
      "topics": [
        "Test2SRE"
      ]
    }
  ],
  "_readme": "https://github.com/kosukeimai/rct2/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "AER",
    "backports",
    "boot",
    "broom",
    "car",
    "carData",
    "cli",
    "colorspace",
    "cowplot",
    "cpp11",
    "Deriv",
    "doBy",
    "dplyr",
    "farver",
    "forecast",
    "Formula",
    "fracdiff",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "lmtest",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "mgcv",
    "microbenchmark",
    "minqa",
    "modelr",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "pbkrtest",
    "pillar",
    "pkgconfig",
    "purrr",
    "quadprog",
    "quantreg",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "rlang",
    "S7",
    "sandwich",
    "scales",
    "SparseM",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "timeDate",
    "urca",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "spillover_vignette.Rmd",
      "filename": "spillover_vignette.html",
      "title": "Causal Inference with Inteference",
      "engine": "knitr::rmarkdown",
      "headings": [
        "RCT2",
        "Motivation",
        "Study Design",
        "Data",
        "Overview",
        "Functions",
        "CADErand",
        "CADEreg",
        "CADEparamreg"
      ],
      "created": "2020-08-31 03:29:40",
      "modified": "2022-10-15 14:53:19",
      "commits": 15
    },
    {
      "source": "interference_vignette.Rmd",
      "filename": "interference_vignette.html",
      "title": "Statistical Inference and Power Analysis for Direct and Spillover Effects",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Study Design",
        "Data",
        "Overview",
        "Functions",
        "CalAPO",
        "Test2SRE",
        "Calpara and Calsamplesize"
      ],
      "created": "2020-11-30 00:18:51",
      "modified": "2022-10-15 14:53:19",
      "commits": 13
    }
  ],
  "_score": 4.698970004336019,
  "_indexed": true,
  "_nocasepkg": "rct2",
  "_universes": [
    "kosukeimai"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.1",
      "date": "2026-05-28T06:12:30.000Z",
      "distro": "noble",
      "commit": "6b5fcc7253bba0e242d175b37cf07b00ce373d7f",
      "fileid": "407d09ea47c3d57da4370f4269ff241c8f39068ba737e0f573bc55b9caa02505",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/26557878049"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.0.1",
      "date": "2026-05-28T06:12:21.000Z",
      "distro": "noble",
      "commit": "6b5fcc7253bba0e242d175b37cf07b00ce373d7f",
      "fileid": "10dbf173ddcde10888ede658730dce94ee9695ea50cc6432fc49acc4279912f4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/26557878049"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.1",
      "date": "2026-05-28T06:14:39.000Z",
      "commit": "6b5fcc7253bba0e242d175b37cf07b00ce373d7f",
      "fileid": "c57ba7e51d1aa335ef5739c5f38dcd0a1b1bdc4179a907f7f43605b8d5abdfea",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/26557878049"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.0.1",
      "date": "2026-05-28T06:14:46.000Z",
      "commit": "6b5fcc7253bba0e242d175b37cf07b00ce373d7f",
      "fileid": "1c88c19cdb45eda6ca30030b6727faea0b83a12c36d0cee95248a3730dd835c4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/26557878049"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.1",
      "date": "2026-05-28T06:12:24.000Z",
      "commit": "6b5fcc7253bba0e242d175b37cf07b00ce373d7f",
      "fileid": "41a4b1229baf1a8cfc394e8db1760c629146164a62a2427581f035bc24085fcb",
      "status": "success",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/26557878049"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-05-28T06:11:20.000Z",
      "commit": "6b5fcc7253bba0e242d175b37cf07b00ce373d7f",
      "fileid": "859e136bb990b1b4cf1507b8f8e615edc185a2027030ae2d472c00f5943960e6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/26557878049"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-05-28T06:11:19.000Z",
      "commit": "6b5fcc7253bba0e242d175b37cf07b00ce373d7f",
      "fileid": "d1f92529908aacc9e8748002af59b3d66d03c4d43da1b1e0748579385042575e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/26557878049"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-05-28T06:11:19.000Z",
      "commit": "6b5fcc7253bba0e242d175b37cf07b00ce373d7f",
      "fileid": "ea176a48e2eb5f79ff9224f9736f1a408d05acc1a3dca0e6536c3f504c66fe57",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/26557878049"
    }
  ]
}