{
  "_id": "6ad47d768b78ae42bccc52bc",
  "Package": "hbal",
  "Type": "Package",
  "Title": "Hierarchically Regularized Entropy Balancing",
  "Version": "1.3.0",
  "Date": "2026-09-17",
  "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)",
  "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",
  "Config/testthat/edition": "3",
  "NeedsCompilation": "yes",
  "Config/pak/sysreqs": "cmake libicu-dev",
  "Repository": "https://xuyiqing.r-universe.dev",
  "Date/Publication": "2026-09-18 05:53:04 UTC",
  "RemoteUrl": "https://github.com/xuyiqing/hbal",
  "RemoteRef": "HEAD",
  "RemoteSha": "a906839ae728d3cd75e0c954e2c244c5622ab277",
  "Packaged": {
    "Date": "2026-10-18 07:56:51 UTC",
    "User": "root"
  },
  "Author": "Yiqing Xu [aut, cre] (ORCID: <https://orcid.org/0000-0003-2041-6671>),\nEddie Yang [aut]",
  "Maintainer": "Yiqing Xu <yiqingxu@stanford.edu>",
  "_user": "xuyiqing",
  "_type": "src",
  "_file": "hbal_1.3.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/c612bbb0cda161a703ea43780b601cb6bfbbd7c6c02d21c808e2136f3b0c407b",
  "_filesize": 389987,
  "_sha256": "c612bbb0cda161a703ea43780b601cb6bfbbd7c6c02d21c808e2136f3b0c407b",
  "_expires": "2027-01-26T08:04:05.000Z",
  "_created": "2026-10-18T07:56:51.000Z",
  "_published": "2026-10-18T08:04:06.847Z",
  "_buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39109382334",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 117622626390,
      "time": 129,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12130255273"
    },
    {
      "job": 117622626441,
      "time": 167,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12129778373"
    },
    {
      "job": 117622626425,
      "time": 152,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12129851932"
    },
    {
      "job": 117622626373,
      "time": 156,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12129991606"
    },
    {
      "job": 117622626472,
      "time": 101,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12129619221"
    },
    {
      "job": 117622626409,
      "time": 217,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12129529295"
    },
    {
      "job": 117622626383,
      "time": 151,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12129574131"
    },
    {
      "job": 117622626376,
      "time": 201,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12130115609"
    },
    {
      "job": 117622068592,
      "time": 184,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12129743170"
    },
    {
      "job": 117622626342,
      "time": 102,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12130230232"
    },
    {
      "job": 117622626410,
      "time": 390,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12128959918"
    },
    {
      "job": 117622626442,
      "time": 189,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12129723528"
    },
    {
      "job": 117622626420,
      "time": 157,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12130265775"
    },
    {
      "job": 117622626473,
      "time": 373,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12129837145"
    },
    {
      "job": 117622626421,
      "time": 144,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12129768511"
    }
  ],
  "_upstream": "https://github.com/xuyiqing/hbal",
  "_commit": {
    "id": "a906839ae728d3cd75e0c954e2c244c5622ab277",
    "author": "Yiqing Xu <xuyiqing@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #15 from xuyiqing/dev: Release hbal 1.3.0\n\nRelease hbal 1.3.0",
    "time": 1789710784
  },
  "_maintainer": {
    "name": "Yiqing Xu",
    "email": "yiqingxu@stanford.edu",
    "orcid": "0000-0003-2041-6671"
  },
  "_distro": "resolute",
  "_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"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "xuyiqing",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-38",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v1.3.0",
      "date": "2026-09-18"
    }
  ],
  "_stars": 12,
  "_contributors": [
    {
      "user": "eddieyang211",
      "count": 78,
      "uuid": 43977631
    },
    {
      "user": "xuyiqing",
      "count": 65,
      "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",
    "followers": 620,
    "description": "Assistant Professor at Stanford PoliSci"
  },
  "_downloads": {
    "count": 614,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/hbal"
  },
  "_devurl": "https://github.com/xuyiqing/hbal",
  "_searchresults": 19,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/hbal.html",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_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"
    },
    {
      "version": "1.3.0",
      "date": "2026-09-17"
    }
  ],
  "_exports": [
    "att",
    "balanceData",
    "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": "balanceData",
      "title": "Balance Statistics from an 'hbal' Object as a Data Frame",
      "topics": [
        "balanceData"
      ]
    },
    {
      "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",
    "pillar",
    "pkgconfig",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "rlang",
    "S7",
    "scales",
    "shape",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 4.658964842664435,
  "_indexed": true,
  "_nocasepkg": "hbal",
  "_universes": [
    "xuyiqing"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.0",
      "date": "2026-10-18T07:58:40.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "a906839ae728d3cd75e0c954e2c244c5622ab277",
      "fileid": "https://r2.ropensci.org/0019b2553323a3983d7c9ef048234a20388fe1f97cd97b3e2269a9032095a4a7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39109382334"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.0",
      "date": "2026-10-18T07:59:00.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "a906839ae728d3cd75e0c954e2c244c5622ab277",
      "fileid": "https://r2.ropensci.org/5dfa3e903a425a62f4376f9c57896ea60249c566f690ef2e6d5c77f16d39cb70",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39109382334"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.3.0",
      "date": "2026-10-18T07:59:02.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "a906839ae728d3cd75e0c954e2c244c5622ab277",
      "fileid": "https://r2.ropensci.org/adef0d90573ffef1e3b75ba27f69172f2868ffb807b75e684414729bea50e7e9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39109382334"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.3.0",
      "date": "2026-10-18T07:59:04.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "a906839ae728d3cd75e0c954e2c244c5622ab277",
      "fileid": "https://r2.ropensci.org/75cd33cdaea275e837d47a59139a2a43042883d71c17e0f371954957bacaf55b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39109382334"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.3.0",
      "date": "2026-10-18T08:01:47.000Z",
      "arch": "aarch64",
      "commit": "a906839ae728d3cd75e0c954e2c244c5622ab277",
      "fileid": "https://r2.ropensci.org/9ec820ea2ccd3bc6b567e6c4aa1f91f19b5d045e9e990e7adf89d008713ce5b4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39109382334"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.3.0",
      "date": "2026-10-18T07:59:36.000Z",
      "arch": "x86_64",
      "commit": "a906839ae728d3cd75e0c954e2c244c5622ab277",
      "fileid": "https://r2.ropensci.org/98470f6e0dda0073390f3b5909a57dd33db7d9cb9789f680f468502ba1a333cf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39109382334"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.3.0",
      "date": "2026-10-18T08:00:48.000Z",
      "arch": "aarch64",
      "commit": "a906839ae728d3cd75e0c954e2c244c5622ab277",
      "fileid": "https://r2.ropensci.org/e96323b8941fc33cc2386f71766119874b42efd0f8e6c9c8d544f773d5c49efe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39109382334"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.3.0",
      "date": "2026-10-18T08:00:02.000Z",
      "arch": "x86_64",
      "commit": "a906839ae728d3cd75e0c954e2c244c5622ab277",
      "fileid": "https://r2.ropensci.org/78da4a4bd7b0965909cf0e6ebb17fcf8b54ef3162c11bcbbd19fc18d977bf21e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39109382334"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3.0",
      "date": "2026-10-18T07:58:51.000Z",
      "arch": "emscripten",
      "commit": "a906839ae728d3cd75e0c954e2c244c5622ab277",
      "fileid": "https://r2.ropensci.org/c9a3b7c9c33a0872af05a64b5048d25abb3a71fb03a4d3dd92b8118c727ee282",
      "status": "success",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39109382334"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-10-18T08:02:14.000Z",
      "arch": "aarch64",
      "commit": "a906839ae728d3cd75e0c954e2c244c5622ab277",
      "fileid": "https://r2.ropensci.org/92976430acf0a0c4d6b296b9ba5fdd0cd17e6336c1868a3d540abe61dc84c832",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39109382334"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-10-18T07:58:28.000Z",
      "arch": "x86_64",
      "commit": "a906839ae728d3cd75e0c954e2c244c5622ab277",
      "fileid": "https://r2.ropensci.org/2118929afe39f654de091c1affc8487804f67bdb68e51ca57e5fc9d351628bd6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39109382334"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-10-18T07:58:21.000Z",
      "arch": "x86_64",
      "commit": "a906839ae728d3cd75e0c954e2c244c5622ab277",
      "fileid": "https://r2.ropensci.org/6799ad67e2e869e52ffe8bf451de89667d33d1e78d20611f608447b79fb15dba",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39109382334"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-10-18T08:01:49.000Z",
      "arch": "aarch64",
      "commit": "a906839ae728d3cd75e0c954e2c244c5622ab277",
      "fileid": "https://r2.ropensci.org/c1ef0e51ca67eef844b3ccf255f7b868d8129662f9baf58a1b3a2297c2a82392",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39109382334"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-10-18T07:58:08.000Z",
      "arch": "x86_64",
      "commit": "a906839ae728d3cd75e0c954e2c244c5622ab277",
      "fileid": "https://r2.ropensci.org/ac7c651b5db1188dd76c2fc8523b8c3476410b6604acf7639c39e9624e54b403",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39109382334"
    }
  ]
}