{
  "_id": "6abcba5e99f7aa8c6aa4b090",
  "Package": "sreg",
  "Type": "Package",
  "Title": "Stratified Randomized Experiments",
  "Version": "2.1.0",
  "Authors@R": "c(\nperson(\"Juri\", \"Trifonov\", email = \"jutrifonov@u.northwestern.edu\", role = c(\"aut\", \"cre\", \"cph\")),\nperson(\"Yuehao\", \"Bai\", email = \"yuehao.bai@usc.edu\", role = \"aut\"),\nperson(\"Azeem\", \"Shaikh\", email = \"amshaikh@uchicago.edu\", role = \"aut\"),\nperson(\"Max\", \"Tabord-Meehan\", email = \"m.tabordmeehan@utoronto.ca\", role = \"aut\"))",
  "Description": "Estimate average treatment effects (ATEs) in stratified\nrandomized experiments. 'sreg' supports a wide range of\nstratification designs, including matched pairs, n-tuple\ndesigns, and larger strata with many units — possibly of\nunequal size across strata. 'sreg' is designed to accommodate\nscenarios with multiple treatments and cluster-level treatment\nassignments, and accommodates optimal linear covariate\nadjustment based on baseline observable characteristics. 'sreg'\ncomputes estimators and standard errors based on Bugni, Canay,\nShaikh (2018) <doi:10.1080/01621459.2017.1375934>; Bugni,\nCanay, Shaikh, Tabord-Meehan (2024+)\n<doi:10.48550/arXiv.2204.08356>; Jiang, Linton, Tang, Zhang\n(2023+) <doi:10.48550/arXiv.2201.13004>; Bai, Jiang, Romano,\nShaikh, and Zhang (2024) <doi:10.1016/j.jeconom.2024.105740>;\nBai (2022) <doi:10.1257/aer.20201856>; Bai, Romano, and Shaikh\n(2022) <doi:10.1080/01621459.2021.1883437>; Liu (2024+)\n<doi:10.48550/arXiv.2301.09016>; and Cytrynbaum (2024)\n<doi:10.3982/QE2475>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "URL": "https://github.com/jutrifonov/sreg",
  "BugReports": "https://github.com/jutrifonov/sreg/issues",
  "Config/roxygen2/version": "8.0.0",
  "RoxygenNote": "7.3.2",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://jutrifonov.r-universe.dev",
  "Date/Publication": "2026-09-30 03:00:16 UTC",
  "RemoteUrl": "https://github.com/jutrifonov/sreg",
  "RemoteRef": "HEAD",
  "RemoteSha": "2cb819992547fe10ed6bcd842c16764c361a5a02",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-09-30 07:12:49 UTC",
    "User": "root"
  },
  "Author": "Juri Trifonov [aut, cre, cph],\nYuehao Bai [aut],\nAzeem Shaikh [aut],\nMax Tabord-Meehan [aut]",
  "Maintainer": "Juri Trifonov <jutrifonov@u.northwestern.edu>",
  "_user": "jutrifonov",
  "_type": "src",
  "_file": "sreg_2.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/8e5f40b7ca9855d812e69a191af4fb474a28bebab0084e2abdf992c36bb62959",
  "_filesize": 506090,
  "_sha256": "8e5f40b7ca9855d812e69a191af4fb474a28bebab0084e2abdf992c36bb62959",
  "_expires": "2027-01-08T07:29:32.000Z",
  "_created": "2026-09-30T07:12:49.000Z",
  "_published": "2026-09-30T07:29:33.905Z",
  "_jobs": [
    {
      "job": 109780672167,
      "time": 260,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11081474986"
    },
    {
      "job": 109780672133,
      "time": 222,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11082582054"
    },
    {
      "job": 109780672229,
      "time": 159,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11082757658"
    },
    {
      "job": 109780672147,
      "time": 173,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11082856168"
    },
    {
      "job": 109779626418,
      "time": 215,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11082132919"
    },
    {
      "job": 109780672206,
      "time": 129,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11082257822"
    },
    {
      "job": 109780672212,
      "time": 202,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11082088656"
    },
    {
      "job": 109780672116,
      "time": 177,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11081744498"
    },
    {
      "job": 109780672129,
      "time": 189,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11082297891"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/jutrifonov/actions/runs/36682075586",
  "_status": "success",
  "_upstream": "https://github.com/jutrifonov/sreg",
  "_commit": {
    "id": "2cb819992547fe10ed6bcd842c16764c361a5a02",
    "author": "Juri Trifonov <jutrifonov@u.northwestern.edu>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Update README with STATA version link\n\nAdded link to STATA version of the sreg package.",
    "time": 1790737216
  },
  "_maintainer": {
    "name": "Juri Trifonov",
    "email": "jutrifonov@u.northwestern.edu",
    "login": "jutrifonov",
    "description": "Econ PhD @ Northwestern | Former predoc @ UChicago BFI (with Azeem Shaikh & Max Tabord-Meehan)",
    "uuid": 85934554
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "extraDistr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "viridis",
      "role": "Imports"
    },
    {
      "package": "haven",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "jutrifonov",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-31",
      "n": 5
    },
    {
      "week": "2026-32",
      "n": 8
    },
    {
      "week": "2026-33",
      "n": 6
    },
    {
      "week": "2026-34",
      "n": 4
    },
    {
      "week": "2026-36",
      "n": 4
    },
    {
      "week": "2026-37",
      "n": 2
    },
    {
      "week": "2026-39",
      "n": 1
    },
    {
      "week": "2026-40",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v2.1.0",
      "date": "2026-08-22"
    }
  ],
  "_stars": 3,
  "_contributors": [
    {
      "user": "jutrifonov",
      "count": 717,
      "uuid": 85934554
    }
  ],
  "_userbio": {
    "uuid": 85934554,
    "type": "user",
    "name": "Juri Trifonov",
    "followers": 8,
    "description": "Econ PhD @ Northwestern | Former predoc @ UChicago BFI (with Azeem Shaikh & Max Tabord-Meehan)"
  },
  "_downloads": {
    "count": 335,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/sreg"
  },
  "_devurl": "https://github.com/jutrifonov/sreg",
  "_searchresults": 4,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/sreg.html",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/jutrifonov/sreg",
  "_realowner": "jutrifonov",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2024-06-25"
    },
    {
      "version": "1.0.1",
      "date": "2025-02-06"
    },
    {
      "version": "2.0.1",
      "date": "2025-08-19"
    },
    {
      "version": "2.0.2",
      "date": "2025-08-25"
    },
    {
      "version": "2.1.0",
      "date": "2026-08-22"
    }
  ],
  "_exports": [
    "sreg",
    "sreg.rgen"
  ],
  "_datasets": [
    {
      "name": "AEJapp",
      "title": "Replication data for: Iron Deficiency and Schooling Attainment in Peru (Chong et al, 2016)",
      "object": "AEJapp",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "student_id",
        "hhid",
        "exposure",
        "treatment",
        "class_level",
        "class",
        "non_placebo1",
        "male",
        "age_months",
        "pills_taken",
        "greater_equal_500",
        "five_less_pills_taken",
        "weight_base",
        "height_base",
        "hemo_base",
        "anemic_base",
        "anemic_base_re",
        "anemic_base_miss",
        "hemo_end",
        "anemic",
        "wii_identify",
        "wii_memorize",
        "wii_analyze",
        "wii_compute",
        "wii_visualize",
        "wii_total",
        "gradesq1",
        "gradesq34",
        "avg_qtr34_math",
        "avg_qtr34_eng",
        "avg_qtr34_socsci",
        "avg_qtr34_sci",
        "avg_qtr34_comn",
        "promotion",
        "dropped_out",
        "time_to_school_hr",
        "time_to_school_hr_re",
        "time_to_school_hr_miss",
        "num_hh",
        "hh_total_inc_hun",
        "hh_elec",
        "hh_elec_re",
        "hh_elec_miss",
        "hh_mother_edu",
        "hh_mother_edu_re",
        "hh_mother_edu_miss",
        "hh_land",
        "own_land",
        "father_hh",
        "future_plans_base",
        "leave_home_town",
        "cont_school",
        "future_plans",
        "has_sib",
        "has_sib_treat",
        "anemic_base_hh",
        "anemic_base_hh_re",
        "anemic_base_re_non_placebo1",
        "num_sessions_date",
        "hours_sessions_date",
        "days_miss_illness",
        "nr_minutes_run"
      ],
      "rows": 215,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "AEJapp",
      "title": "Replication data for: Iron Deficiency and Schooling Attainment in Peru (Chong et al, 2016)",
      "topics": [
        "AEJapp"
      ]
    },
    {
      "page": "plot.sreg",
      "title": "Plot Method for `sreg` Objects",
      "topics": [
        "plot.sreg"
      ]
    },
    {
      "page": "print.sreg",
      "title": "Print 'sreg' Objects",
      "topics": [
        "print.sreg"
      ]
    },
    {
      "page": "sreg",
      "title": "Estimate Average Treatment Effects (ATEs) and Corresponding Standard Errors",
      "topics": [
        "sreg"
      ]
    },
    {
      "page": "sreg.rgen",
      "title": "Generate a Pseudo-Random Sample under the Stratified Block Randomization Design",
      "topics": [
        "sreg.rgen"
      ]
    }
  ],
  "_readme": "https://github.com/jutrifonov/sreg/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "dplyr",
    "extraDistr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridis",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "intro-to-sreg.Rmd",
      "filename": "intro-to-sreg.html",
      "title": "A Practical Guide to sreg",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "The basic workflow",
        "Required data and indexing conventions",
        "Choosing the design options",
        "Large-strata designs",
        "Unadjusted and adjusted estimation",
        "Plotting treatment effects",
        "Uniform small-strata designs",
        "Mixed small- and large-strata designs",
        "How k and the 25% rule work",
        "Cluster-randomized experiments",
        "Experiments without stratification",
        "The sreg result object",
        "HC1 correction",
        "Working with the built-in empirical data",
        "Simulation with sreg.rgen()",
        "Common warnings and errors",
        "Recommended analysis checklist",
        "References and further help"
      ],
      "created": "2024-05-08 23:54:41",
      "modified": "2026-08-03 19:13:13",
      "commits": 4
    }
  ],
  "_score": 5.079181246047625,
  "_indexed": true,
  "_nocasepkg": "sreg",
  "_universes": [
    "jutrifonov"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-09-30T07:15:18.000Z",
      "distro": "resolute",
      "commit": "2cb819992547fe10ed6bcd842c16764c361a5a02",
      "fileid": "https://r2.ropensci.org/5e6754aecd9824828ff5da68f30e436a52dd181c1ad352827b65f2d241adb6ad",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jutrifonov/actions/runs/36682075586"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-09-30T07:15:13.000Z",
      "distro": "resolute",
      "commit": "2cb819992547fe10ed6bcd842c16764c361a5a02",
      "fileid": "https://r2.ropensci.org/c717597335de7a9191bba100b79270e4af42868549edb597d70f8e2f3dd4cd79",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jutrifonov/actions/runs/36682075586"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-09-30T07:27:56.000Z",
      "commit": "2cb819992547fe10ed6bcd842c16764c361a5a02",
      "fileid": "https://r2.ropensci.org/8cbd1c6fc8e31b0bf099b0a83148bd5acf392503eec9d604394fa86e808c1d47",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jutrifonov/actions/runs/36682075586"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-09-30T07:25:19.000Z",
      "commit": "2cb819992547fe10ed6bcd842c16764c361a5a02",
      "fileid": "https://r2.ropensci.org/e67c3821263e024309af7051381f300791e5746bc6d4fce133005f3512d3cd28",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jutrifonov/actions/runs/36682075586"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.1.0",
      "date": "2026-09-30T07:15:12.000Z",
      "commit": "2cb819992547fe10ed6bcd842c16764c361a5a02",
      "fileid": "https://r2.ropensci.org/667e66ead855efb51c1a6ae8a1a7e66714c48a4cf3bfa131e228c41f6579d72a",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jutrifonov/actions/runs/36682075586"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-09-30T07:13:56.000Z",
      "commit": "2cb819992547fe10ed6bcd842c16764c361a5a02",
      "fileid": "https://r2.ropensci.org/a530cd76f34c0cb6269d84a0b103cd9b8497f920d4fbf91bf26e7ba6d3ef0c75",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jutrifonov/actions/runs/36682075586"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-09-30T07:14:00.000Z",
      "commit": "2cb819992547fe10ed6bcd842c16764c361a5a02",
      "fileid": "https://r2.ropensci.org/f68d697d54cb8f1c3f3c39e7e7bad20d8432cec1a35ff5e12a5a12e7971946fa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jutrifonov/actions/runs/36682075586"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-09-30T07:13:54.000Z",
      "commit": "2cb819992547fe10ed6bcd842c16764c361a5a02",
      "fileid": "https://r2.ropensci.org/3efebe6ae795de26782243a2919d5f4428c4da9449fa30103cdb01bc02f9b4d8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jutrifonov/actions/runs/36682075586"
    }
  ]
}