{
  "_id": "6a197c47acfb0bcc41df6441",
  "Package": "sreg",
  "Type": "Package",
  "Title": "Stratified Randomized Experiments",
  "Version": "2.0.2",
  "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",
  "RoxygenNote": "7.3.2",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "URL": "https://github.com/jutrifonov/sreg",
  "BugReports": "https://github.com/jutrifonov/sreg/issues",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://jutrifonov.r-universe.dev",
  "Date/Publication": "2025-09-01 19:56:12 UTC",
  "RemoteUrl": "https://github.com/jutrifonov/sreg",
  "RemoteRef": "HEAD",
  "RemoteSha": "14fc4a3897050f053c8b902f3c287c6fb63d93de",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-29 10:31:29 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>",
  "MD5sum": "01dd5ae157bdbe801dec9af98773637a",
  "_user": "jutrifonov",
  "_type": "src",
  "_file": "sreg_2.0.2.tar.gz",
  "_fileid": "24083674ea039c3c9e57a23718b92627036ff133e955c9967993f2d9d5943915",
  "_filesize": 259889,
  "_sha256": "24083674ea039c3c9e57a23718b92627036ff133e955c9967993f2d9d5943915",
  "_created": "2026-05-29T10:31:29.000Z",
  "_published": "2026-05-29T11:45:11.382Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78483855686,
      "time": 226,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7288698354"
    },
    {
      "job": 78483855700,
      "time": 197,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7288689871"
    },
    {
      "job": 78483855673,
      "time": 224,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7289861897"
    },
    {
      "job": 78483855699,
      "time": 226,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7289864838"
    },
    {
      "job": 78483352080,
      "time": 209,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7288632491"
    },
    {
      "job": 78483855701,
      "time": 113,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7288666210"
    },
    {
      "job": 78483855689,
      "time": 202,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7288691168"
    },
    {
      "job": 78483855736,
      "time": 200,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7288690879"
    },
    {
      "job": 78483855706,
      "time": 188,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7288687528"
    }
  ],
  "_buildurl": "https://github.com/r-universe/jutrifonov/actions/runs/26632118899",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/jutrifonov/sreg",
  "_commit": {
    "id": "14fc4a3897050f053c8b902f3c287c6fb63d93de",
    "author": "Juri Trifonov <jutrifonov@u.northwestern.edu>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Update README.md",
    "time": 1756756572
  },
  "_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
  },
  "_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": "2025-22",
      "n": 1
    },
    {
      "week": "2025-23",
      "n": 2
    },
    {
      "week": "2025-24",
      "n": 38
    },
    {
      "week": "2025-25",
      "n": 12
    },
    {
      "week": "2025-26",
      "n": 7
    },
    {
      "week": "2025-29",
      "n": 46
    },
    {
      "week": "2025-33",
      "n": 1
    },
    {
      "week": "2025-34",
      "n": 65
    },
    {
      "week": "2025-36",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v2.0.1",
      "date": "2025-08-19"
    },
    {
      "name": "v2.0.2",
      "date": "2025-08-21"
    }
  ],
  "_stars": 3,
  "_contributors": [
    {
      "user": "jutrifonov",
      "count": 700,
      "uuid": 85934554
    }
  ],
  "_userbio": {
    "uuid": 85934554,
    "type": "user",
    "name": "Juri Trifonov",
    "description": "Econ PhD @ Northwestern | Former predoc @ UChicago BFI (with Azeem Shaikh & Max Tabord-Meehan)"
  },
  "_downloads": {
    "count": 467,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/sreg"
  },
  "_devurl": "https://github.com/jutrifonov/sreg",
  "_searchresults": 5,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/sreg.html",
    "manual.pdf"
  ],
  "_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"
    }
  ],
  "_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": "Intro to sreg",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2024-05-08 23:54:41",
      "modified": "2024-06-20 16:05:52",
      "commits": 3
    }
  ],
  "_score": 5.1303337684950066,
  "_indexed": true,
  "_nocasepkg": "sreg",
  "_universes": [
    "jutrifonov"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.0.2",
      "date": "2026-05-29T10:33:47.000Z",
      "distro": "noble",
      "commit": "14fc4a3897050f053c8b902f3c287c6fb63d93de",
      "fileid": "99d0704ec8c74b42e9f00b289dfee8a0e999849a6c4ce12f5babd6c4e5f8dc79",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jutrifonov/actions/runs/26632118899"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.0.2",
      "date": "2026-05-29T10:33:38.000Z",
      "distro": "noble",
      "commit": "14fc4a3897050f053c8b902f3c287c6fb63d93de",
      "fileid": "6131b1e1050059cf75ccfa7f794c904ced4e9eae851459248f1353985b1ccf9e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jutrifonov/actions/runs/26632118899"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.0.2",
      "date": "2026-05-29T11:43:05.000Z",
      "commit": "14fc4a3897050f053c8b902f3c287c6fb63d93de",
      "fileid": "0a37efaa355a320d8c85155ba02e5aeefc5499b227adca9cab6d753964873a3e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jutrifonov/actions/runs/26632118899"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.0.2",
      "date": "2026-05-29T11:43:10.000Z",
      "commit": "14fc4a3897050f053c8b902f3c287c6fb63d93de",
      "fileid": "72fe5c55a079b710bcbcbbd4e3cd367cac761049cc59724ee305e3513cd7940b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jutrifonov/actions/runs/26632118899"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.0.2",
      "date": "2026-05-29T10:33:41.000Z",
      "commit": "14fc4a3897050f053c8b902f3c287c6fb63d93de",
      "fileid": "8270d075735896e73a45f9bbfc40843a58346446edac7d6e1d9f61b203556681",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jutrifonov/actions/runs/26632118899"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.0.2",
      "date": "2026-05-29T10:33:00.000Z",
      "commit": "14fc4a3897050f053c8b902f3c287c6fb63d93de",
      "fileid": "766d2b280ea03a2215c72c38a7a28fe78ef70b982c3930e8e87f4c32eb953436",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jutrifonov/actions/runs/26632118899"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.0.2",
      "date": "2026-05-29T10:32:51.000Z",
      "commit": "14fc4a3897050f053c8b902f3c287c6fb63d93de",
      "fileid": "c33b029e746fda1638eba992bf70de918f3c0d57235b06bf7007584913729fbd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jutrifonov/actions/runs/26632118899"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.0.2",
      "date": "2026-05-29T10:32:51.000Z",
      "commit": "14fc4a3897050f053c8b902f3c287c6fb63d93de",
      "fileid": "cb0bb42762e8946a4ca7a22cfd69d9e8b44c966dbc5f33be7f391f4855440c40",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jutrifonov/actions/runs/26632118899"
    }
  ]
}