{
  "_id": "6a48fc98b5e98c4082a0523f",
  "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-07-04 12:25:54 UTC",
    "User": "root"
  },
  "Author": "Karissa Huang [aut],\nZhichao Jiang [aut],\nKosuke Imai [aut, cre]",
  "_user": "kosukeimai",
  "_type": "src",
  "_file": "RCT2_0.0.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/fafa6098a6b6ac91fed0739b04f6deaa2fae0fa514826a93a5b39f5477ad2876",
  "_filesize": 323771,
  "_sha256": "fafa6098a6b6ac91fed0739b04f6deaa2fae0fa514826a93a5b39f5477ad2876",
  "_expires": "2026-10-12T12:29:10.000Z",
  "_created": "2026-07-04T12:25:54.000Z",
  "_published": "2026-07-04T12:29:12.061Z",
  "_jobs": [
    {
      "job": 85132027283,
      "time": 149,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8081676003"
    },
    {
      "job": 85132027264,
      "time": 155,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8081676794"
    },
    {
      "job": 85132027252,
      "time": 89,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8081668159"
    },
    {
      "job": 85132027261,
      "time": 87,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8081667715"
    },
    {
      "job": 85131780920,
      "time": 224,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8081657167"
    },
    {
      "job": 85132027266,
      "time": 149,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8081676064"
    },
    {
      "job": 85132027269,
      "time": 80,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8081666978"
    },
    {
      "job": 85132027259,
      "time": 86,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8081667770"
    },
    {
      "job": 85132027277,
      "time": 76,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8081666716"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/28706057129",
  "_status": "success",
  "_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
  },
  "_distro": "resolute",
  "_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",
    "followers": 598
  },
  "_downloads": {
    "count": 254,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/RCT2"
  },
  "_devurl": "https://github.com/kosukeimai/rct2",
  "_searchresults": 7,
  "_rbuild": "4.6.1",
  "_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",
    "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-07-04T12:28:22.000Z",
      "distro": "resolute",
      "commit": "6b5fcc7253bba0e242d175b37cf07b00ce373d7f",
      "fileid": "https://r2.ropensci.org/03c776510f654f19f74e585a1738d65acbd767c2154f48cb5c38962d57cbe9b8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/28706057129"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.1",
      "date": "2026-07-04T12:28:27.000Z",
      "distro": "resolute",
      "commit": "6b5fcc7253bba0e242d175b37cf07b00ce373d7f",
      "fileid": "https://r2.ropensci.org/72d92bdedf3304cd732520a0dbee27c484e9d3c03d12a337e056e74d8e664bf8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/28706057129"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.1",
      "date": "2026-07-04T12:27:25.000Z",
      "commit": "6b5fcc7253bba0e242d175b37cf07b00ce373d7f",
      "fileid": "https://r2.ropensci.org/c022cecb5134a58c8fc66b7cba66e107d2f802c536af1290de2ec0535caa86ae",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/28706057129"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.1",
      "date": "2026-07-04T12:27:20.000Z",
      "commit": "6b5fcc7253bba0e242d175b37cf07b00ce373d7f",
      "fileid": "https://r2.ropensci.org/04b3c493f9e78695c24a42aa80c375179058375fd51952085d6343a3962cd52d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/28706057129"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.1",
      "date": "2026-07-04T12:28:40.000Z",
      "commit": "6b5fcc7253bba0e242d175b37cf07b00ce373d7f",
      "fileid": "https://r2.ropensci.org/671d7390e90f8b455eddf517575fd37826696e97ce49031a4e5c5df7bc872d3a",
      "status": "success",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/28706057129"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-07-04T12:27:06.000Z",
      "commit": "6b5fcc7253bba0e242d175b37cf07b00ce373d7f",
      "fileid": "https://r2.ropensci.org/66a5dff1b46a3b0df1953cdb78027b898edbb95ba7f1f58b3591586c9b337ef1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/28706057129"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-07-04T12:27:15.000Z",
      "commit": "6b5fcc7253bba0e242d175b37cf07b00ce373d7f",
      "fileid": "https://r2.ropensci.org/93ccc4bcad6de3708d62223c6fd61230850b979853942e96c2cfb17d4b315715",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/28706057129"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-07-04T12:27:04.000Z",
      "commit": "6b5fcc7253bba0e242d175b37cf07b00ce373d7f",
      "fileid": "https://r2.ropensci.org/80cabd6de4cad9052bf006098c1c6d05b186731e8cbbf152dc7a2abdee3e57f3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/28706057129"
    }
  ]
}