{
  "_id": "6a1dbbe01d7bb097a0a54bc4",
  "Package": "fastrerandomize",
  "Title": "Hardware-Accelerated Rerandomization for Improved Balance",
  "Version": "0.4",
  "Authors@R": "c(person(given = \"Fucheng Warren\",\nfamily = \"Zhu\",\nrole = c(\"aut\"),\nemail = \"wzhu@college.harvard.edu\",\ncomment = c(ORCID = \"0009-0001-5692-7572\")),\nperson(given = \"Aniket Sachin\",\nfamily = \"Kamat\",\nrole = \"aut\",\nemail = \"aniketkamat@berkeley.edu\",\ncomment = c(ORCID = \"0009-0003-6411-1084\")),\nperson(given = \"Connor\",\nfamily = \"Jerzak\",\nrole = c(\"aut\", \"cre\"),\nemail = \"connor.jerzak@gmail.com\",\ncomment = c(ORCID = \"0000-0003-1914-8905\")),\nperson(given = \"Rebecca\",\nfamily = \"Goldstein\",\nrole = \"aut\",\nemail = \"rgoldstein@berkeley.edu\",\ncomment = c(ORCID = \"0000-0002-9944-8440\")))",
  "Description": "Provides hardware-accelerated tools for performing\nrerandomization and randomization testing in experimental\nresearch. Using a 'JAX' backend, the package enables exact\nrerandomization inference even for large experiments with\nhundreds of billions of possible randomizations. Key\nfunctionalities include generating pools of acceptable\nrerandomizations based on covariate balance, conducting exact\nrandomization tests, and performing pre-analysis evaluations to\ndetermine optimal rerandomization acceptance thresholds. The\npackage supports various hardware acceleration frameworks\nincluding 'CPU', 'CUDA', and 'METAL', making it versatile\nacross accelerated computing environments. This allows\nresearchers to efficiently implement stringent rerandomization\ndesigns and conduct valid inference even with large sample\nsizes. The package is partly based on Jerzak and Goldstein\n(2023) <doi:10.48550/arXiv.2310.00861>.",
  "URL": "https://github.com/cjerzak/fastrerandomize-software",
  "BugReports": "https://github.com/cjerzak/fastrerandomize-software/issues",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "false",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "RoxygenNote": "7.3.3",
  "Config/pak/sysreqs": "libpng-dev python3",
  "Repository": "https://cjerzak.r-universe.dev",
  "Date/Publication": "2026-06-01 12:34:55 UTC",
  "RemoteUrl": "https://github.com/cjerzak/fastrerandomize-software",
  "RemoteRef": "HEAD",
  "RemoteSha": "b26239114abd81324d896b484451fb5a789bc854",
  "RemoteSubdir": "fastrerandomize",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-01 16:48:27 UTC",
    "User": "root"
  },
  "Author": "Fucheng Warren Zhu [aut] (ORCID:\n<https://orcid.org/0009-0001-5692-7572>),\nAniket Sachin Kamat [aut] (ORCID:\n<https://orcid.org/0009-0003-6411-1084>),\nConnor Jerzak [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-1914-8905>),\nRebecca Goldstein [aut] (ORCID:\n<https://orcid.org/0000-0002-9944-8440>)",
  "Maintainer": "Connor Jerzak <connor.jerzak@gmail.com>",
  "MD5sum": "b9eac5ee80cf366f97aacff3b7c47e90",
  "_user": "cjerzak",
  "_type": "src",
  "_file": "fastrerandomize_0.4.tar.gz",
  "_fileid": "03e6343483a1ac9cf0950eed089ffb5de940f748c0cf641c35d9366d68ed4269",
  "_filesize": 2868364,
  "_sha256": "03e6343483a1ac9cf0950eed089ffb5de940f748c0cf641c35d9366d68ed4269",
  "_created": "2026-06-01T16:48:27.000Z",
  "_published": "2026-06-01T17:05:36.836Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78902583292,
      "time": 137,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7337555899"
    },
    {
      "job": 78902583202,
      "time": 148,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7337560349"
    },
    {
      "job": 78902583177,
      "time": 95,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7337826125"
    },
    {
      "job": 78902583239,
      "time": 128,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7337862833"
    },
    {
      "job": 78901817730,
      "time": 255,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7337504524"
    },
    {
      "job": 78902583304,
      "time": 110,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7337545504"
    },
    {
      "job": 78902583183,
      "time": 124,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7337550826"
    },
    {
      "job": 78902583222,
      "time": 104,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7337543077"
    },
    {
      "job": 78902583234,
      "time": 112,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7337546497"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cjerzak/actions/runs/26768616762",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cjerzak/fastrerandomize-software",
  "_commit": {
    "id": "b26239114abd81324d896b484451fb5a789bc854",
    "author": "cjerzak <connor.jerzak@gmail.com>",
    "committer": "cjerzak <connor.jerzak@gmail.com>",
    "message": "Remove Rcheck artifacts + expand .gitignore\n",
    "time": 1780317295
  },
  "_maintainer": {
    "name": "Connor Jerzak",
    "email": "connor.jerzak@gmail.com",
    "login": "cjerzak",
    "linkedin": "in/connor-jerzak-60325576",
    "orcid": "0000-0003-1914-8905",
    "twitter": "@JerzakConnor",
    "description": "\"Nullius in verba\"",
    "uuid": 20072192
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "reticulate",
      "role": "Imports"
    },
    {
      "package": "assertthat",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cjerzak",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-23",
      "n": 4
    },
    {
      "week": "2025-26",
      "n": 1
    },
    {
      "week": "2025-38",
      "n": 3
    },
    {
      "week": "2025-39",
      "n": 9
    },
    {
      "week": "2025-47",
      "n": 6
    },
    {
      "week": "2025-48",
      "n": 6
    },
    {
      "week": "2025-50",
      "n": 9
    },
    {
      "week": "2025-52",
      "n": 9
    },
    {
      "week": "2026-01",
      "n": 1
    },
    {
      "week": "2026-02",
      "n": 5
    },
    {
      "week": "2026-23",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "accelerated-computing",
    "balance",
    "distance-measures",
    "hardware-acceleration",
    "rerandomization"
  ],
  "_stars": 8,
  "_contributors": [
    {
      "user": "cjerzak",
      "count": 172,
      "uuid": 20072192
    },
    {
      "user": "warrenzhu050413",
      "count": 2,
      "uuid": 104503364
    }
  ],
  "_userbio": {
    "uuid": 20072192,
    "type": "user",
    "name": "Connor T. Jerzak",
    "description": "\"Nullius in verba\""
  },
  "_downloads": {
    "count": 126,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/fastrerandomize"
  },
  "_devurl": "https://github.com/cjerzak/fastrerandomize-software",
  "_searchresults": 5,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/fastrerandomize.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/cjerzak/fastrerandomize-software",
  "_realowner": "cjerzak",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1",
      "date": "2025-01-13"
    },
    {
      "version": "0.2",
      "date": "2025-01-17"
    },
    {
      "version": "0.3",
      "date": "2025-12-22"
    }
  ],
  "_exports": [
    "build_backend",
    "check_jax_availability",
    "compute_diff_at_tau_for_oneW_R",
    "diagnose_rerandomization",
    "diff_in_means_R",
    "fast_distance",
    "fastrerandomize_class",
    "fastrerandomize_test",
    "find_fiducial_interval_R",
    "generate_randomizations",
    "generate_randomizations_exact",
    "generate_randomizations_mc",
    "generate_randomizations_R",
    "hotellingT2_R",
    "print2",
    "randomization_test",
    "randomization_test_R"
  ],
  "_datasets": [
    {
      "name": "QJEData",
      "title": "QJEData: Agricultural Treatment Experiment Data",
      "object": "QJEData",
      "file": "QJEData.RData",
      "class": [
        "data.frame"
      ],
      "fields": [
        "children",
        "married",
        "hh_size",
        "hh_sexrat",
        "treat1",
        "R_yield_ELA_sqm",
        "ELA_Fertil_D"
      ],
      "rows": 968,
      "table": true,
      "tojson": true
    },
    {
      "name": "YOPData",
      "title": "YOPData",
      "object": "YOPData",
      "file": "YOPData.RData",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "build_backend",
      "title": "A function to build the environment for fastrerandomize. Builds a conda environment in which 'JAX' and 'np' are installed. Users can also create a conda environment where 'JAX' and 'np' are installed themselves.",
      "topics": [
        "build_backend"
      ]
    },
    {
      "page": "check_jax_availability",
      "title": "Check if 'Python' and 'JAX' are available",
      "topics": [
        "check_jax_availability"
      ]
    },
    {
      "page": "compute_diff_at_tau_for_oneW_R",
      "title": "Compute potential outcome difference in means for a single assignment under a hypothesized tau in base R",
      "topics": [
        "compute_diff_at_tau_for_oneW_R"
      ]
    },
    {
      "page": "diagnose_rerandomization",
      "title": "Diagnostic map from observed (or targeted) balance to precision and stringency",
      "topics": [
        "diagnose_rerandomization"
      ]
    },
    {
      "page": "diff_in_means_R",
      "title": "Simple difference in means in base R",
      "topics": [
        "diff_in_means_R"
      ]
    },
    {
      "page": "fast_distance",
      "title": "JAX-accelerated distance calculations",
      "topics": [
        "fast_distance"
      ]
    },
    {
      "page": "fastrerandomize_class",
      "title": "Constructor for fastrerandomize randomizations",
      "topics": [
        "fastrerandomize_class"
      ]
    },
    {
      "page": "fastrerandomize_test",
      "title": "Constructor for fastrerandomize randomization test objects",
      "topics": [
        "fastrerandomize_test"
      ]
    },
    {
      "page": "find_fiducial_interval_R",
      "title": "Fiducial interval logic in base R, for randomization test",
      "topics": [
        "find_fiducial_interval_R"
      ]
    },
    {
      "page": "generate_randomizations",
      "title": "Generate randomizations for a rerandomization-based experimental design",
      "topics": [
        "generate_randomizations"
      ]
    },
    {
      "page": "generate_randomizations_exact",
      "title": "Generate Complete Randomizations with Optional Balance Constraints",
      "topics": [
        "generate_randomizations_exact"
      ]
    },
    {
      "page": "generate_randomizations_mc",
      "title": "Draws a random sample of acceptable randomizations from all possible complete randomizations using Monte Carlo sampling",
      "topics": [
        "generate_randomizations_mc"
      ]
    },
    {
      "page": "generate_randomizations_R",
      "title": "Generate randomizations in base R, filtering by Hotelling's T^2 acceptance",
      "topics": [
        "generate_randomizations_R"
      ]
    },
    {
      "page": "hotellingT2_R",
      "title": "Compute Hotelling's T-squared statistic in base R",
      "topics": [
        "hotellingT2_R"
      ]
    },
    {
      "page": "plot.fastrerandomize_randomizations",
      "title": "Plot method for fastrerandomize_randomizations objects",
      "topics": [
        "plot.fastrerandomize_randomizations"
      ]
    },
    {
      "page": "plot.fastrerandomize_test",
      "title": "Plot method for fastrerandomize_test objects",
      "topics": [
        "plot.fastrerandomize_test"
      ]
    },
    {
      "page": "print.fastrerandomize_randomizations",
      "title": "Print method for fastrerandomize_randomizations objects",
      "topics": [
        "print.fastrerandomize_randomizations"
      ]
    },
    {
      "page": "print.fastrerandomize_test",
      "title": "Print method for fastrerandomize_test objects",
      "topics": [
        "print.fastrerandomize_test"
      ]
    },
    {
      "page": "print2",
      "title": "Print timestamped messages with optional quieting",
      "topics": [
        "print2"
      ]
    },
    {
      "page": "QJEData",
      "title": "QJEData: Agricultural Treatment Experiment Data",
      "topics": [
        "QJEData"
      ]
    },
    {
      "page": "randomization_test",
      "title": "Fast randomization test",
      "topics": [
        "randomization_test"
      ]
    },
    {
      "page": "randomization_test_R",
      "title": "Base R randomization test: difference in means + optional fiducial interval",
      "topics": [
        "randomization_test_R"
      ]
    },
    {
      "page": "summary.fastrerandomize_randomizations",
      "title": "Summary method for fastrerandomize_randomizations objects",
      "topics": [
        "summary.fastrerandomize_randomizations"
      ]
    },
    {
      "page": "summary.fastrerandomize_test",
      "title": "Summary method for fastrerandomize_test objects",
      "topics": [
        "summary.fastrerandomize_test"
      ]
    },
    {
      "page": "YOPData",
      "title": "YOPData",
      "topics": [
        "YOPData"
      ]
    }
  ],
  "_readme": "https://github.com/cjerzak/fastrerandomize-software/raw/HEAD/README.md",
  "_rundeps": [
    "assertthat",
    "here",
    "jsonlite",
    "lattice",
    "Matrix",
    "png",
    "rappdirs",
    "Rcpp",
    "RcppTOML",
    "reticulate",
    "rlang",
    "rprojroot",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "MainVignette.rmd",
      "filename": "MainVignette.html",
      "title": "FastRerandomize Package Tutorial",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "1. Obtain Pre-treatment Covariate Data",
        "2. Generate Randomizations",
        "3. S3 Methods: Print, Summary, and Plot",
        "4. Randomization Test",
        "4a. Setup Simulated Outcomes",
        "4b. Run the Randomization Test",
        "Conclusion"
      ],
      "created": "2025-01-02 21:18:58",
      "modified": "2025-12-22 22:07:35",
      "commits": 11
    }
  ],
  "_score": 5.643452676486188,
  "_indexed": true,
  "_nocasepkg": "fastrerandomize",
  "_universes": [
    "cjerzak"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4",
      "date": "2026-06-01T16:50:33.000Z",
      "distro": "noble",
      "commit": "b26239114abd81324d896b484451fb5a789bc854",
      "fileid": "13dec4e9bf6aa34cf114dba543dc43daa82be5dc0153dce7e10031008c7c1cee",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/cjerzak/actions/runs/26768616762"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4",
      "date": "2026-06-01T16:50:40.000Z",
      "distro": "noble",
      "commit": "b26239114abd81324d896b484451fb5a789bc854",
      "fileid": "fc2b506fa8194c8439acf952e8edb4ba91f4c7b922dc1b4628d2893a3ad6db19",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/cjerzak/actions/runs/26768616762"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4",
      "date": "2026-06-01T17:03:10.000Z",
      "commit": "b26239114abd81324d896b484451fb5a789bc854",
      "fileid": "225f3cbf34a4501f3971439f7f7271b87ce374297ff16fca72a0acd821a34ca9",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/cjerzak/actions/runs/26768616762"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.4",
      "date": "2026-06-01T17:04:43.000Z",
      "commit": "b26239114abd81324d896b484451fb5a789bc854",
      "fileid": "267569929c1c0f0a20f8a9a993bd7e86df725ebfafba0e61eed2992edac5728c",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/cjerzak/actions/runs/26768616762"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4",
      "date": "2026-06-01T16:50:39.000Z",
      "commit": "b26239114abd81324d896b484451fb5a789bc854",
      "fileid": "83d7f7fa1c6ed4af48ac61fe2bf88e0355d8daf3030a0726c3190ca21eb8c858",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cjerzak/actions/runs/26768616762"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4",
      "date": "2026-06-01T16:50:03.000Z",
      "commit": "b26239114abd81324d896b484451fb5a789bc854",
      "fileid": "16d775b48733b71f396d2334053614b64dcaaf7c80e2a2ef041dae6131d74cc5",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/cjerzak/actions/runs/26768616762"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4",
      "date": "2026-06-01T16:49:48.000Z",
      "commit": "b26239114abd81324d896b484451fb5a789bc854",
      "fileid": "ecc084d7166b5e3b29e5b4dc78aeaceb346da85bd5200a9e22c7f2a92fe92a30",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/cjerzak/actions/runs/26768616762"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.4",
      "date": "2026-06-01T16:49:55.000Z",
      "commit": "b26239114abd81324d896b484451fb5a789bc854",
      "fileid": "8bcfe46c5ee54f7412fd16021cfc9007dda8dab93d673fff6d00b18a3969b01d",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/cjerzak/actions/runs/26768616762"
    }
  ]
}