{
  "_id": "6a1edcb1b401979e7340fe04",
  "Package": "hbal",
  "Type": "Package",
  "Title": "Hierarchically Regularized Entropy Balancing",
  "Version": "1.2.15",
  "Date": "2025-09-09",
  "Authors@R": "c(\nperson(\"Yiqing\", \"Xu\", , \"yiqingxu@stanford.edu\", c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0003-2041-6671\")),\nperson(\"Eddie\", \"Yang\", , \"z5yang@ucsd.edu\", c(\"aut\"))\n)",
  "Maintainer": "Yiqing Xu <yiqingxu@stanford.edu>",
  "Description": "Implements hierarchically regularized entropy balancing\nproposed by Xu and Yang (2022) <doi:10.1017/pan.2022.12>. The\nmethod adjusts the covariate distributions of the control group\nto match those of the treatment group. 'hbal' automatically\nexpands the covariate space to include higher order terms and\nuses cross-validation to select variable penalties for the\nbalancing conditions.",
  "URL": "https://yiqingxu.org/packages/hbal/",
  "BugReports": "https://github.com/xuyiqing/hbal/issues",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.2.3",
  "NeedsCompilation": "yes",
  "Config/pak/sysreqs": "cmake libicu-dev",
  "Repository": "https://xuyiqing.r-universe.dev",
  "Date/Publication": "2025-09-20 17:58:33 UTC",
  "RemoteUrl": "https://github.com/xuyiqing/hbal",
  "RemoteRef": "HEAD",
  "RemoteSha": "2783d63bbd7aed9c557591793343f0fd25cd7cde",
  "Packaged": {
    "Date": "2026-05-20 08:26:46 UTC",
    "User": "root"
  },
  "Author": "Yiqing Xu [aut, cre] (ORCID: <https://orcid.org/0000-0003-2041-6671>),\nEddie Yang [aut]",
  "MD5sum": "36e61d75dc03cd025a0bed0bce2cc548",
  "_user": "xuyiqing",
  "_type": "src",
  "_file": "hbal_1.2.15.tar.gz",
  "_fileid": "6edf687ab94ed40b2fdc25d9f88fe3a7a45902e115710cd722c39b671cffe401",
  "_filesize": 278387,
  "_sha256": "6edf687ab94ed40b2fdc25d9f88fe3a7a45902e115710cd722c39b671cffe401",
  "_created": "2026-05-20T08:26:46.000Z",
  "_published": "2026-06-02T13:37:53.148Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79083615438,
      "time": 168,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7105014010"
    },
    {
      "job": 79083614522,
      "time": 172,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7105015698"
    },
    {
      "job": 79083615375,
      "time": 190,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7105022301"
    },
    {
      "job": 79083615481,
      "time": 174,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7105015963"
    },
    {
      "job": 79083615967,
      "time": 115,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7104994911"
    },
    {
      "job": 79083615435,
      "time": 237,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7105039824"
    },
    {
      "job": 79083615600,
      "time": 145,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7105006412"
    },
    {
      "job": 79083614584,
      "time": 273,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7105051442"
    },
    {
      "job": 79083614208,
      "time": 226,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7104951649"
    },
    {
      "job": 79083613697,
      "time": 126,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7359265699"
    },
    {
      "job": 79083614182,
      "time": 168,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7105013867"
    },
    {
      "job": 79083615726,
      "time": 154,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7105010092"
    },
    {
      "job": 79083615580,
      "time": 171,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7105015333"
    }
  ],
  "_buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26150605421",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/xuyiqing/hbal",
  "_commit": {
    "id": "2783d63bbd7aed9c557591793343f0fd25cd7cde",
    "author": "Yiqing Xu <xuyiqing@users.noreply.github.com>",
    "committer": "Yiqing Xu <xuyiqing@users.noreply.github.com>",
    "message": "file link to package\n",
    "time": 1758391113
  },
  "_maintainer": {
    "name": "Yiqing Xu",
    "email": "yiqingxu@stanford.edu",
    "orcid": "0000-0003-2041-6671"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.6.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.1",
      "role": "Imports"
    },
    {
      "package": "estimatr",
      "role": "Imports"
    },
    {
      "package": "glmnet",
      "role": "Imports"
    },
    {
      "package": "gtable",
      "role": "Imports"
    },
    {
      "package": "gridExtra",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "nloptr",
      "role": "Imports"
    },
    {
      "package": "generics",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "broom",
      "role": "Suggests"
    },
    {
      "package": "ebal",
      "role": "Suggests"
    }
  ],
  "_owner": "xuyiqing",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-38",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 12,
  "_contributors": [
    {
      "user": "eddieyang211",
      "count": 78,
      "uuid": 43977631
    },
    {
      "user": "xuyiqing",
      "count": 34,
      "uuid": 7664920
    },
    {
      "user": "tuliren",
      "count": 2,
      "uuid": 1933157
    },
    {
      "user": "zihan-xie",
      "count": 2,
      "uuid": 147901942
    },
    {
      "user": "olivroy",
      "count": 1,
      "uuid": 52606734
    }
  ],
  "_userbio": {
    "uuid": 7664920,
    "type": "user",
    "name": "Yiqing Xu",
    "description": "Assistant Professor at Stanford PoliSci"
  },
  "_downloads": {
    "count": 568,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/hbal"
  },
  "_devurl": "https://github.com/xuyiqing/hbal",
  "_pkgdown": "https://yiqingxu.org/packages/hbal/",
  "_searchresults": 13,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/hbal.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/xuyiqing/hbal",
  "_realowner": "xuyiqing",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.2.8",
      "date": "2023-01-24"
    },
    {
      "version": "1.2.12",
      "date": "2024-01-10"
    },
    {
      "version": "1.2.15",
      "date": "2025-09-10"
    }
  ],
  "_exports": [
    "att",
    "covarExpand",
    "hbal"
  ],
  "_datasets": [
    {
      "name": "contenderJudges",
      "title": "Data from Black and Owens (2016)",
      "object": "hbal",
      "class": [
        "data.frame"
      ],
      "fields": [
        "presIdeoVote",
        "treatFinal0",
        "judgeJCS",
        "presDist",
        "panelDistJCS",
        "circmed",
        "sctmed",
        "coarevtc",
        "casepub",
        "judge"
      ],
      "rows": 10171,
      "table": true,
      "tojson": true
    },
    {
      "name": "lalonde",
      "title": "Data from Hazlett (2020)",
      "object": "hbal",
      "class": [
        "data.frame"
      ],
      "fields": [
        "nsw",
        "age",
        "educ",
        "black",
        "hisp",
        "married",
        "re74",
        "re75",
        "re78",
        "u74",
        "u75",
        "u78",
        "nodegr"
      ],
      "rows": 2675,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "dot-onAttach",
      "title": "Subsidiary hbal Function",
      "topics": [
        ".onAttach"
      ]
    },
    {
      "page": "att",
      "title": "Estimating the ATT from an hbal object",
      "topics": [
        "att"
      ]
    },
    {
      "page": "contenderJudges",
      "title": "Data from Black and Owens (2016)",
      "topics": [
        "contenderJudges"
      ]
    },
    {
      "page": "covarExclude",
      "title": "Match Column Names to be Excluded",
      "topics": [
        "covarExclude"
      ]
    },
    {
      "page": "covarExpand",
      "title": "Serial Expansion of Covariates",
      "topics": [
        "covarExpand"
      ]
    },
    {
      "page": "crossValidate",
      "title": "Ridge Penalty Selection through Cross Validation",
      "topics": [
        "CrossValidate",
        "crossValidate"
      ]
    },
    {
      "page": "doubleSelection",
      "title": "Double Selection",
      "topics": [
        "doubleSelection"
      ]
    },
    {
      "page": "hbal",
      "title": "Hierarchically Regularized Entropy Balancing",
      "topics": [
        "hbal"
      ]
    },
    {
      "page": "hbal-data",
      "title": "Data from Black and Owens (2016) and Hazlett (2020)",
      "topics": [
        "hbal-data"
      ]
    },
    {
      "page": "lalonde",
      "title": "Data from Hazlett (2020)",
      "topics": [
        "lalonde"
      ]
    },
    {
      "page": "plot.hbal",
      "title": "Plotting Covariate Balance from an 'hbal' Object",
      "topics": [
        "plot",
        "plot.hbal"
      ]
    },
    {
      "page": "summary.hbal",
      "title": "Summarizing from an 'hbal' Object",
      "topics": [
        "summary",
        "summary.hbal"
      ]
    },
    {
      "page": "updateCoef",
      "title": "Update lambda",
      "topics": [
        "updateCoef"
      ]
    }
  ],
  "_readme": "https://github.com/xuyiqing/hbal/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "codetools",
    "cpp11",
    "estimatr",
    "farver",
    "foreach",
    "Formula",
    "generics",
    "ggplot2",
    "glmnet",
    "glue",
    "gridExtra",
    "gtable",
    "isoband",
    "iterators",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "nloptr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "rlang",
    "S7",
    "scales",
    "shape",
    "stringi",
    "stringr",
    "survival",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 4.494154594018443,
  "_indexed": true,
  "_nocasepkg": "hbal",
  "_universes": [
    "xuyiqing"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.15",
      "date": "2026-05-20T08:29:27.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "2783d63bbd7aed9c557591793343f0fd25cd7cde",
      "fileid": "36704bd2159cdc301f2f4f6e4f53dd592956fcd7bcfcc5d30206fad8a6c2aeb5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26150605421"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.15",
      "date": "2026-05-20T08:29:25.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "2783d63bbd7aed9c557591793343f0fd25cd7cde",
      "fileid": "4143bc1297388dd8234d6d83debe1e4cc1b65f38c16445232743c42b763927ca",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26150605421"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.15",
      "date": "2026-05-20T08:29:52.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "2783d63bbd7aed9c557591793343f0fd25cd7cde",
      "fileid": "24ccad7b0d90a682dfbd42137f16b68b189fc5792a331528467c4ef0c4ed2e12",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26150605421"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.15",
      "date": "2026-05-20T08:29:27.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "2783d63bbd7aed9c557591793343f0fd25cd7cde",
      "fileid": "0205130d9b7547d39a0ac71a22a6e7a7b5d31125974f256d614dd75128c93cba",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26150605421"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.15",
      "date": "2026-05-20T08:28:48.000Z",
      "arch": "aarch64",
      "commit": "2783d63bbd7aed9c557591793343f0fd25cd7cde",
      "fileid": "3ee1fffeba6cc601384e28606e63eca457c019ffa287d342055efac1cf00e160",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26150605421"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.15",
      "date": "2026-05-20T08:30:11.000Z",
      "arch": "x86_64",
      "commit": "2783d63bbd7aed9c557591793343f0fd25cd7cde",
      "fileid": "45211557655bbc0f7794ea2aed4b41c40961b3639f248974ddab50bb1adb180a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26150605421"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.15",
      "date": "2026-05-20T08:29:03.000Z",
      "arch": "aarch64",
      "commit": "2783d63bbd7aed9c557591793343f0fd25cd7cde",
      "fileid": "c3587cac9f37463db858b966b7f380831c1f73be4380dde404a1c2ac7785093b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26150605421"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.15",
      "date": "2026-05-20T08:30:40.000Z",
      "arch": "x86_64",
      "commit": "2783d63bbd7aed9c557591793343f0fd25cd7cde",
      "fileid": "94815b4709861eac3bba8c16943b70debdd26f9adf8e115ea51e6aa1831e9ed8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26150605421"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.15",
      "date": "2026-05-20T08:28:37.000Z",
      "arch": "x86_64",
      "commit": "2783d63bbd7aed9c557591793343f0fd25cd7cde",
      "fileid": "3fbb6e80ac3e3bfb0417c14205da5b90e04478e2c9ce0ba0aac69947fd9fec9c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26150605421"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.15",
      "date": "2026-05-20T08:28:40.000Z",
      "arch": "x86_64",
      "commit": "2783d63bbd7aed9c557591793343f0fd25cd7cde",
      "fileid": "98117257ca07a280402803e177d08c8fb66618dbc3347c052d382c9f73c94cb0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26150605421"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.2.15",
      "date": "2026-05-20T08:28:30.000Z",
      "arch": "x86_64",
      "commit": "2783d63bbd7aed9c557591793343f0fd25cd7cde",
      "fileid": "96b82313d3ccecbdc4790dc9a68d8fcb970e991c22e71bf0f4ca6b523ef2bda2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26150605421"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.15",
      "date": "2026-06-02T13:37:11.000Z",
      "arch": "emscripten",
      "commit": "2783d63bbd7aed9c557591793343f0fd25cd7cde",
      "fileid": "a6c16a1931e2391abaafc702ba37b75825d0a694ca086bd8bcbf1b756575ddc2",
      "status": "success",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26150605421"
    }
  ]
}