{
  "_id": "6ad5c2c643d630dc48a40059",
  "Package": "kbal",
  "Type": "Package",
  "Title": "Kernel Balancing",
  "Version": "0.1.5",
  "Date": "2026-02-28",
  "Authors@R": "c(person(\"Chad\", \"Hazlett\", email = \"chazlett@ucla.edu\", role = c(\"aut\", \"cph\")),\nperson(\"Ciara\", \"Sterbenz\", email = \"cster@g.ucla.edu\", role = \"aut\"),\nperson(\"Erin\", \"Hartman\", email = \"ekhartman@ucla.edu\", role = \"ctb\"),\nperson(\"Alex\", \"Kravetz\", email = \"alexdkravetz@gmail.com\", role = \"ctb\"),\nperson(\"Borna\", \"Bateni\", email = \"borna@ucla.edu\", role = c(\"aut\", \"cre\")))",
  "Description": "Provides a weighting approach that employs kernels to make\none group have a similar distribution to another group on\ncovariates. This method matches not only means or marginal\ndistributions but also higher-order transformations implied by\nthe choice of kernel. 'kbal' is applicable to both treatment\neffect estimation and survey reweighting problems. Based on\nHazlett, C. (2020) \"Kernel Balancing: A flexible non-parametric\nweighting procedure for estimating causal effects.\" Statistica\nSinica.\n<https://www.researchgate.net/publication/299013953_Kernel_Balancing_A_flexible_non-parametric_weighting_procedure_for_estimating_causal_effects>.",
  "URL": "https://github.com/chadhazlett/KBAL",
  "BugReports": "https://github.com/chadhazlett/KBAL/issues",
  "License": "GPL (>= 2)",
  "Language": "en-US",
  "LazyData": "TRUE",
  "LazyLoad": "yes",
  "Maintainer": "Borna Bateni <borna@ucla.edu>",
  "RoxygenNote": "7.3.3",
  "Encoding": "UTF-8",
  "Config/pak/sysreqs": "cmake",
  "Repository": "https://chadhazlett.r-universe.dev",
  "Date/Publication": "2026-02-28 23:26:24 UTC",
  "RemoteUrl": "https://github.com/chadhazlett/kbal",
  "RemoteRef": "HEAD",
  "RemoteSha": "3cb38cbd1914900a13354003aca2b2967e50c841",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-19 06:57:23 UTC",
    "User": "root"
  },
  "Author": "Chad Hazlett [aut, cph],\nCiara Sterbenz [aut],\nErin Hartman [ctb],\nAlex Kravetz [ctb],\nBorna Bateni [aut, cre]",
  "_user": "chadhazlett",
  "_type": "src",
  "_file": "kbal_0.1.5.tar.gz",
  "_fileid": "https://r2.ropensci.org/0340e2989d43c30c078808226ae825c9db895dbb4251f9fa698f3f944d8402f1",
  "_filesize": 324023,
  "_sha256": "0340e2989d43c30c078808226ae825c9db895dbb4251f9fa698f3f944d8402f1",
  "_expires": "2027-01-27T07:12:04.000Z",
  "_created": "2026-10-19T06:57:23.000Z",
  "_published": "2026-10-19T07:12:06.421Z",
  "_buildurl": "https://github.com/r-universe/chadhazlett/actions/runs/39212402998",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 117930286414,
      "time": 120,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12168213403"
    },
    {
      "job": 117930286419,
      "time": 139,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12168173651"
    },
    {
      "job": 117930286395,
      "time": 111,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12168253213"
    },
    {
      "job": 117930286490,
      "time": 132,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12167604570"
    },
    {
      "job": 117930286494,
      "time": 187,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12169290261"
    },
    {
      "job": 117930286495,
      "time": 435,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12169176018"
    },
    {
      "job": 117930286493,
      "time": 185,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12168258610"
    },
    {
      "job": 117930286592,
      "time": 300,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12168419235"
    },
    {
      "job": 117928630198,
      "time": 320,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12168715913"
    },
    {
      "job": 117930286408,
      "time": 102,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12168178444"
    },
    {
      "job": 117930286645,
      "time": 339,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12168482699"
    },
    {
      "job": 117930286466,
      "time": 160,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12168243414"
    },
    {
      "job": 117930286558,
      "time": 112,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12168725621"
    },
    {
      "job": 117930286548,
      "time": 358,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12168287572"
    },
    {
      "job": 117930286590,
      "time": 94,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12168685743"
    }
  ],
  "_upstream": "https://github.com/chadhazlett/kbal",
  "_commit": {
    "id": "3cb38cbd1914900a13354003aca2b2967e50c841",
    "author": "Chad Hazlett <chadhazlett@gmail.com>",
    "committer": "Chad Hazlett <chadhazlett@gmail.com>",
    "message": "v0.1.5: show (cont.) for continuous outcomes in kpop_summary\n\n- kpop_summary: continuous outcomes now show level = \"(cont.)\" instead\n  of NA, so output tables don't suggest a missing-data problem\n- Bump version to 0.1.5 and update date\n\nCo-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>\n",
    "time": 1772321184
  },
  "_maintainer": {
    "name": "Borna Bateni",
    "email": "borna@ucla.edu"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppParallel",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.11.0",
      "role": "Imports"
    },
    {
      "package": "RcppParallel",
      "version": ">= 4.4.4",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "RSpectra",
      "role": "Imports"
    },
    {
      "package": "glmnet",
      "role": "Imports"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    }
  ],
  "_owner": "chadhazlett",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-09",
      "n": 8
    }
  ],
  "_tags": [],
  "_stars": 12,
  "_contributors": [
    {
      "user": "csterbenz1",
      "count": 218,
      "uuid": 56528556
    },
    {
      "user": "chadhazlett",
      "count": 122,
      "uuid": 5587656
    },
    {
      "user": "bornabat",
      "count": 50,
      "uuid": 113739751
    },
    {
      "user": "akravetz",
      "count": 6,
      "uuid": 34658341
    },
    {
      "user": "xuyiqing",
      "count": 1,
      "uuid": 7664920
    }
  ],
  "_userbio": {
    "uuid": 5587656,
    "type": "user",
    "name": "Chad Hazlett",
    "followers": 25,
    "description": "Associate professor in the Statistics and Political Science departments at UCLA."
  },
  "_downloads": {
    "count": 463,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/kbal"
  },
  "_devurl": "https://github.com/chadhazlett/kbal",
  "_searchresults": 135,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/kbal.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/chadhazlett/kbal",
  "_realowner": "chadhazlett",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2024-10-16"
    },
    {
      "version": "0.1.2",
      "date": "2025-03-14"
    },
    {
      "version": "0.1.3",
      "date": "2025-07-06"
    },
    {
      "version": "0.1.4",
      "date": "2026-02-23"
    }
  ],
  "_exports": [
    "b_maxvarK",
    "biasbound",
    "calc_linearized_var",
    "calc_ses_cat_var",
    "dimw",
    "drop_multicollin",
    "ebalance_custom",
    "getdist",
    "getw",
    "kbal",
    "kpop",
    "kpop_summary",
    "makeK",
    "one_hot"
  ],
  "_datasets": [
    {
      "name": "lalonde",
      "title": "Data from National Supported Work program and Panel Study in Income Dynamics",
      "object": "lalonde",
      "class": [
        "data.frame"
      ],
      "fields": [
        "nsw",
        "re78",
        "u78",
        "age",
        "black",
        "hisp",
        "race_ethnicity",
        "married",
        "re74",
        "re75",
        "u74",
        "u75",
        "educ",
        "nodegr"
      ],
      "rows": 2675,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "b_maxvarK",
      "title": "Maximum Variance of Gaussian Kernel Matrix",
      "topics": [
        "b_maxvarK"
      ]
    },
    {
      "page": "biasbound",
      "title": "Worst-Case Bias Bound due to Incomplete Balance",
      "topics": [
        "biasbound"
      ]
    },
    {
      "page": "calc_linearized_var",
      "title": "Linearized variance for a kpop-weighted mean",
      "topics": [
        "calc_linearized_var"
      ]
    },
    {
      "page": "calc_ses_cat_var",
      "title": "Weighted proportions and SEs for a categorical outcome",
      "topics": [
        "calc_ses_cat_var"
      ]
    },
    {
      "page": "dimw",
      "title": "Difference in Means and Difference in Weighted Means",
      "topics": [
        "dimw"
      ]
    },
    {
      "page": "drop_multicollin",
      "title": "Drop Multicollinear Columns",
      "topics": [
        "drop_multicollin"
      ]
    },
    {
      "page": "ebalance_custom",
      "title": "Modified version of ebalance (originally from Jens Hainmueller)",
      "topics": [
        "ebalance_custom"
      ]
    },
    {
      "page": "getdist",
      "title": "L1 Distance",
      "topics": [
        "getdist"
      ]
    },
    {
      "page": "getw",
      "title": "Find Weights using Entropy Balancing.",
      "topics": [
        "getw"
      ]
    },
    {
      "page": "kbal",
      "title": "Kernel Balancing",
      "topics": [
        "kbal"
      ]
    },
    {
      "page": "kpop",
      "title": "Kernel balancing for survey reweighting (kpop).",
      "topics": [
        "kpop"
      ]
    },
    {
      "page": "kpop_summary",
      "title": "Summarise outcomes from a kpop-weighted analysis",
      "topics": [
        "kpop_summary"
      ]
    },
    {
      "page": "lalonde",
      "title": "Data from National Supported Work program and Panel Study in Income Dynamics",
      "topics": [
        "lalonde"
      ]
    },
    {
      "page": "makeK",
      "title": "Build the Gaussian Kernel Matrix",
      "topics": [
        "makeK"
      ]
    },
    {
      "page": "one_hot",
      "title": "One-Hot Encoding for Categorical Data",
      "topics": [
        "one_hot"
      ]
    },
    {
      "page": "print.kpop_summary",
      "title": "Print method for kpop_summary objects",
      "topics": [
        "print.kpop_summary"
      ]
    }
  ],
  "_readme": "https://github.com/chadhazlett/kbal/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "codetools",
    "dplyr",
    "foreach",
    "generics",
    "glmnet",
    "glue",
    "iterators",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "pillar",
    "pkgconfig",
    "R6",
    "Rcpp",
    "RcppEigen",
    "RcppParallel",
    "rlang",
    "RSpectra",
    "shape",
    "survival",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "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": 5.510545010206613,
  "_indexed": true,
  "_nocasepkg": "kbal",
  "_universes": [
    "chadhazlett"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.5",
      "date": "2026-10-19T06:59:10.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "3cb38cbd1914900a13354003aca2b2967e50c841",
      "fileid": "https://r2.ropensci.org/df78e722949cc167598a57c3302449b9693cff44a80f4cd71fbc583b869f2ca9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chadhazlett/actions/runs/39212402998"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.5",
      "date": "2026-10-19T06:59:22.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "3cb38cbd1914900a13354003aca2b2967e50c841",
      "fileid": "https://r2.ropensci.org/36d814061c0e386ddd576975b1e019fe42d5c66bc2a105b20e9efec1da027df3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chadhazlett/actions/runs/39212402998"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.5",
      "date": "2026-10-19T06:59:08.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "3cb38cbd1914900a13354003aca2b2967e50c841",
      "fileid": "https://r2.ropensci.org/d716b19785530e0d65841da349515914005691a5f4bde75e49ca900e7ee9c903",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chadhazlett/actions/runs/39212402998"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.5",
      "date": "2026-10-19T06:59:21.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "3cb38cbd1914900a13354003aca2b2967e50c841",
      "fileid": "https://r2.ropensci.org/ddc987ab68d1bbdf7260ecfc7b1bf1a9fadea29bfb39acd1bc9a5aa4134e6f3d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chadhazlett/actions/runs/39212402998"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.5",
      "date": "2026-10-19T07:06:58.000Z",
      "arch": "aarch64",
      "commit": "3cb38cbd1914900a13354003aca2b2967e50c841",
      "fileid": "https://r2.ropensci.org/2310f1f38bbc2a7640882e8c28a0aaf66bfd59921aa9de7840dcb09405f06191",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chadhazlett/actions/runs/39212402998"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.5",
      "date": "2026-10-19T07:07:59.000Z",
      "arch": "x86_64",
      "commit": "3cb38cbd1914900a13354003aca2b2967e50c841",
      "fileid": "https://r2.ropensci.org/22a39c96173ac9a0620528b903c8b7ebb075c95bf29f8fd5bbd4b378f2af5860",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chadhazlett/actions/runs/39212402998"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.5",
      "date": "2026-10-19T07:10:19.000Z",
      "arch": "aarch64",
      "commit": "3cb38cbd1914900a13354003aca2b2967e50c841",
      "fileid": "https://r2.ropensci.org/10e3e7d82b003479fd1da3c77ca1525282e0a0fbeb5d69b30a313e0c39c75c19",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chadhazlett/actions/runs/39212402998"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.5",
      "date": "2026-10-19T07:06:42.000Z",
      "arch": "x86_64",
      "commit": "3cb38cbd1914900a13354003aca2b2967e50c841",
      "fileid": "https://r2.ropensci.org/a50a85f1f94e80e770a246aa5d8a9c6b43e921d0bd45bbfb5ba734d6a50c561b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chadhazlett/actions/runs/39212402998"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.5",
      "date": "2026-10-19T06:59:24.000Z",
      "arch": "emscripten",
      "commit": "3cb38cbd1914900a13354003aca2b2967e50c841",
      "fileid": "https://r2.ropensci.org/8ec77464cc79dc2fca5c1280bb643cd5823e14572d928c1ec1f182f3a2df6ee6",
      "status": "success",
      "buildurl": "https://github.com/r-universe/chadhazlett/actions/runs/39212402998"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.5",
      "date": "2026-10-19T07:02:03.000Z",
      "arch": "aarch64",
      "commit": "3cb38cbd1914900a13354003aca2b2967e50c841",
      "fileid": "https://r2.ropensci.org/91059af8e7be61b39640015ef3cdebaac94bd532ddb2ad23e6d450b65f460334",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chadhazlett/actions/runs/39212402998"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.5",
      "date": "2026-10-19T06:58:47.000Z",
      "arch": "x86_64",
      "commit": "3cb38cbd1914900a13354003aca2b2967e50c841",
      "fileid": "https://r2.ropensci.org/3e9b56cf588d93ede7dc22322e4768f488e8dfe804b7f20aad5f2ff6287281d1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chadhazlett/actions/runs/39212402998"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.5",
      "date": "2026-10-19T06:58:35.000Z",
      "arch": "x86_64",
      "commit": "3cb38cbd1914900a13354003aca2b2967e50c841",
      "fileid": "https://r2.ropensci.org/319b224eee1fe5ee8a035743e9a62a506552a397d8eaf155be20de8e4af09453",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chadhazlett/actions/runs/39212402998"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.5",
      "date": "2026-10-19T07:02:38.000Z",
      "arch": "aarch64",
      "commit": "3cb38cbd1914900a13354003aca2b2967e50c841",
      "fileid": "https://r2.ropensci.org/2711faeaca023ec6f43ceb6fc704beeecea789bf6dc1fa635b3a03df684d7aa3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chadhazlett/actions/runs/39212402998"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.5",
      "date": "2026-10-19T06:58:30.000Z",
      "arch": "x86_64",
      "commit": "3cb38cbd1914900a13354003aca2b2967e50c841",
      "fileid": "https://r2.ropensci.org/0eab8068a9249efcf163408945f7b7cdfb48a7d7bdaa5e927c40fe99f042f92b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chadhazlett/actions/runs/39212402998"
    }
  ]
}