{
  "_id": "6af23108b90b31e79afd0e02",
  "Package": "forestBalance",
  "Title": "Balancing Confounder Distributions with Forest Energy Balancing",
  "Version": "0.1.1",
  "Authors@R": "c(\nperson(\"Jared\", \"Huling\", role = c(\"aut\", \"cre\"), email = \"jaredhuling@gmail.com\"),\nperson(\"Simion\", \"De\", role = \"aut\")\n)",
  "Description": "Estimates average treatment effects using kernel energy\nbalancing with random forest similarity kernels. A multivariate\nrandom forest jointly models covariates, outcome, and treatment\nto build a similarity kernel between observations. This kernel\nis then used for energy balancing to create weights that\ncontrol for confounding. The method is described in De and\nHuling (2025) <doi:10.48550/arXiv.2512.18069>.",
  "License": "GPL (>= 3)",
  "URL": "https://github.com/jaredhuling/forestBalance",
  "BugReports": "https://github.com/jaredhuling/forestBalance/issues",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "make",
  "Repository": "https://jaredhuling.r-universe.dev",
  "Date/Publication": "2026-11-09 19:17:52 UTC",
  "RemoteUrl": "https://github.com/jaredhuling/forestbalance",
  "RemoteRef": "HEAD",
  "RemoteSha": "791dee01ced7f12d1abf9c333ed2b2ea442bf334",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-11-09 20:38:43 UTC",
    "User": "root"
  },
  "Author": "Jared Huling [aut, cre],\nSimion De [aut]",
  "Maintainer": "Jared Huling <jaredhuling@gmail.com>",
  "_user": "jaredhuling",
  "_type": "src",
  "_file": "forestBalance_0.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/71a36c676947ea0c4b19ba0ab73dd4b77bc3a95d500ab3d925a77ac96ab0e1fc",
  "_filesize": 576308,
  "_sha256": "71a36c676947ea0c4b19ba0ab73dd4b77bc3a95d500ab3d925a77ac96ab0e1fc",
  "_expires": "2027-02-17T20:45:58.000Z",
  "_created": "2026-11-09T20:38:43.000Z",
  "_published": "2026-11-09T20:45:59.966Z",
  "_upstream": "https://github.com/jaredhuling/forestbalance",
  "_status": "success",
  "_maintainer": {
    "name": "Jared Huling",
    "email": "jaredhuling@gmail.com",
    "login": "jaredhuling",
    "description": "Associate Professor in the Division of Biostatistics & Health Data Science at the University of Minnesota",
    "uuid": 3196112
  },
  "_jobs": [
    {
      "job": 129424399396,
      "time": 127,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13707579228"
    },
    {
      "job": 129424399177,
      "time": 170,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13709271524"
    },
    {
      "job": 129424399250,
      "time": 129,
      "config": "linux-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13708468130"
    },
    {
      "job": 129424399229,
      "time": 143,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13709391408"
    },
    {
      "job": 129424399255,
      "time": 147,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13709371451"
    },
    {
      "job": 129424399221,
      "time": 308,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13709551736"
    },
    {
      "job": 129424399217,
      "time": 133,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13709211275"
    },
    {
      "job": 129424399207,
      "time": 388,
      "config": "macos-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13708483981"
    },
    {
      "job": 129422520335,
      "time": 199,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13709440950"
    },
    {
      "job": 129424399212,
      "time": 105,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13708971336"
    },
    {
      "job": 129424399555,
      "time": 261,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13709820175"
    },
    {
      "job": 129424399268,
      "time": 166,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13709201249"
    },
    {
      "job": 129424399314,
      "time": 137,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13709521246"
    },
    {
      "job": 129424399244,
      "time": 216,
      "config": "windows-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13709676039"
    },
    {
      "job": 129424399315,
      "time": 122,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13708373577"
    }
  ],
  "_buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/42694431825",
  "_commit": {
    "id": "791dee01ced7f12d1abf9c333ed2b2ea442bf334",
    "author": "Jared Huling <jaredhuling@gmail.com>",
    "committer": "Jared Huling <jaredhuling@gmail.com>",
    "message": "cran submission\n",
    "time": 1794251872
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "role": "LinkingTo"
    },
    {
      "package": "grf",
      "version": ">= 2.3.0",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "osqp",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "WeightIt",
      "role": "Suggests"
    }
  ],
  "_owner": "jaredhuling",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-12",
      "n": 36
    },
    {
      "week": "2026-13",
      "n": 14
    },
    {
      "week": "2026-14",
      "n": 2
    },
    {
      "week": "2026-15",
      "n": 1
    },
    {
      "week": "2026-37",
      "n": 1
    },
    {
      "week": "2026-38",
      "n": 2
    },
    {
      "week": "2026-46",
      "n": 5
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2026-04-01"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "jaredhuling",
      "count": 61,
      "uuid": 3196112
    },
    {
      "user": "eddelbuettel",
      "count": 1,
      "uuid": 673121
    }
  ],
  "_userbio": {
    "uuid": 3196112,
    "type": "user",
    "name": "Jared Huling",
    "followers": 97,
    "description": "Associate Professor in the Division of Biostatistics & Health Data Science at the University of Minnesota"
  },
  "_downloads": {
    "count": 331,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/forestBalance"
  },
  "_devurl": "https://github.com/jaredhuling/forestbalance",
  "_searchresults": 14,
  "_topics": [
    "cpp"
  ],
  "_abi": {
    "exports": [],
    "imports": [
      {
        "key": "Rcpp::Rcpp_precious_preserve()",
        "hash": "33a97ea62b293da6"
      },
      {
        "key": "Rcpp::Rcpp_precious_remove()",
        "hash": "63d26947ba7e1377"
      },
      {
        "key": "Rcpp::dataptr()",
        "hash": "54e69ad2e6668c83"
      },
      {
        "key": "Rcpp::demangle()",
        "hash": "b0cfd6754c5ebc4e"
      },
      {
        "key": "Rcpp::enterRNGScope()",
        "hash": "a04a299137cef947"
      },
      {
        "key": "Rcpp::exitRNGScope()",
        "hash": "a04a299137cef947"
      },
      {
        "key": "Rcpp::rcpp_get_stack_trace()",
        "hash": "c684a9bbe15cdc52"
      },
      {
        "key": "Rcpp::rcpp_set_stack_trace()",
        "hash": "33a97ea62b293da6"
      }
    ]
  },
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/forestBalance.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/jaredhuling/forestbalance",
  "_realowner": "jaredhuling",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-04-07"
    }
  ],
  "_exports": [
    "compute_balance",
    "forest_balance",
    "forest_kernel",
    "get_leaf_node_matrix",
    "kernel_balance",
    "leaf_node_kernel",
    "leaf_node_kernel_Z",
    "simulate_data"
  ],
  "_help": [
    {
      "page": "forestBalance-package",
      "title": "forestBalance: Forest Kernel Energy Balancing for Causal Inference",
      "topics": [
        "forestBalance-package",
        "forestBalance"
      ]
    },
    {
      "page": "compute_balance",
      "title": "Compute covariate balance diagnostics for a set of weights",
      "topics": [
        "compute_balance",
        "print.forest_balance_diag"
      ]
    },
    {
      "page": "forest_balance",
      "title": "Estimate ATE using forest-based kernel energy balancing",
      "topics": [
        "forest_balance"
      ]
    },
    {
      "page": "forest_kernel",
      "title": "Compute random forest proximity kernel from a GRF forest",
      "topics": [
        "forest_kernel"
      ]
    },
    {
      "page": "get_leaf_node_matrix",
      "title": "Extract leaf node membership matrix from a GRF forest",
      "topics": [
        "get_leaf_node_matrix"
      ]
    },
    {
      "page": "kernel_balance",
      "title": "Kernel energy balancing weights via closed-form solution",
      "topics": [
        "kernel_balance"
      ]
    },
    {
      "page": "leaf_node_kernel",
      "title": "Compute random forest proximity kernel from a leaf node matrix",
      "topics": [
        "leaf_node_kernel"
      ]
    },
    {
      "page": "leaf_node_kernel_Z",
      "title": "Build the sparse indicator matrix Z from a leaf node matrix",
      "topics": [
        "leaf_node_kernel_Z"
      ]
    },
    {
      "page": "print.forest_balance",
      "title": "Print a forest_balance object",
      "topics": [
        "print.forest_balance"
      ]
    },
    {
      "page": "simulate_data",
      "title": "Simulate observational study data with confounding",
      "topics": [
        "simulate_data"
      ]
    },
    {
      "page": "summary.forest_balance",
      "title": "Summarize a forest_balance object",
      "topics": [
        "print.summary.forest_balance",
        "summary.forest_balance"
      ]
    }
  ],
  "_readme": "https://github.com/jaredhuling/forestbalance/raw/HEAD/README.md",
  "_rundeps": [
    "DiceKriging",
    "grf",
    "lattice",
    "lmtest",
    "MASS",
    "Matrix",
    "Rcpp",
    "RcppEigen",
    "sandwich",
    "zoo"
  ],
  "_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"
    }
  ],
  "_vignettes": [
    {
      "source": "augmented.Rmd",
      "filename": "augmented.html",
      "title": "Augmented (Doubly-Robust) Estimation",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "$$\\hat\\tau_",
        "Basic usage",
        "How it works with cross-fitting",
        "Simulation comparison",
        "User-supplied outcome predictions",
        "When to use augmentation",
        "References"
      ],
      "created": "2026-03-20 19:03:57",
      "modified": "2026-11-09 16:34:11",
      "commits": 3
    },
    {
      "source": "crossfitting.Rmd",
      "filename": "crossfitting.html",
      "title": "Cross-Fitting for Debiased Kernel Estimation",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The overfitting problem",
        "Cross-fitting details",
        "K-fold cross-fitting",
        "The role of leaf size",
        "Practical usage",
        "Choosing the number of folds",
        "References"
      ],
      "created": "2026-03-20 13:29:01",
      "modified": "2026-11-09 16:34:11",
      "commits": 6
    },
    {
      "source": "guide.Rmd",
      "filename": "guide.html",
      "title": "Getting Started with forestBalance",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Setup",
        "Simulating data",
        "Estimating the ATE",
        "Forest balance",
        "Entropy balancing (WeightIt)",
        "Energy balancing (WeightIt)",
        "Comparison",
        "Covariate balance",
        "Simulation study",
        "Step-by-step interface"
      ],
      "created": "2026-03-19 19:02:57",
      "modified": "2026-11-09 16:34:11",
      "commits": 7
    },
    {
      "source": "performance.Rmd",
      "filename": "performance.html",
      "title": "Performance and Scalability",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Mathematical background",
        "The kernel energy balancing system",
        "The kernel factorization",
        "Direct solver (block Cholesky)",
        "CG solver (matrix-free)",
        "Block Jacobi preconditioned CG",
        "Solver comparison",
        "End-to-end timing",
        "Scaling with number of trees",
        "Pipeline stage breakdown",
        "Memory usage",
        "Summary"
      ],
      "created": "2026-03-19 19:02:57",
      "modified": "2026-11-09 16:34:11",
      "commits": 13
    }
  ],
  "_score": 5.292256071356476,
  "_indexed": true,
  "_nocasepkg": "forestbalance",
  "_universes": [
    "jaredhuling"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-11-09T20:40:37.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "791dee01ced7f12d1abf9c333ed2b2ea442bf334",
      "fileid": "https://r2.ropensci.org/656e8d76d2a3f69bc491f1c0b362a327ef6f59bb032ab5800077a10ade88847e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/42694431825"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-11-09T20:41:04.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "791dee01ced7f12d1abf9c333ed2b2ea442bf334",
      "fileid": "https://r2.ropensci.org/18b7a23b5f57f00ecf7f8ceab6f924df63fc7706a640e7ab679143f97619b3df",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/42694431825"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-11-09T20:40:40.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "791dee01ced7f12d1abf9c333ed2b2ea442bf334",
      "fileid": "https://r2.ropensci.org/15823468a64a7af9f2dfef0d750670584b8d146483eecfde722935558a521a86",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/42694431825"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-11-09T20:40:56.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "791dee01ced7f12d1abf9c333ed2b2ea442bf334",
      "fileid": "https://r2.ropensci.org/290d9103ffb26dbe6a69a588350a71b3c4222a5887512d1f3bb06f9075b3c5ab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/42694431825"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-11-09T20:40:50.000Z",
      "arch": "aarch64",
      "commit": "791dee01ced7f12d1abf9c333ed2b2ea442bf334",
      "fileid": "https://r2.ropensci.org/52afbc5677ba6cfe06599fe75ed0015dd3beb42f28bdee86124ef595bfc65cda",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/42694431825"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-11-09T20:42:11.000Z",
      "arch": "x86_64",
      "commit": "791dee01ced7f12d1abf9c333ed2b2ea442bf334",
      "fileid": "https://r2.ropensci.org/8a05aadb8b99cd4ab3983987a18d496b4aafc3bf3edc29bd1d44e82694c6391a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/42694431825"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-11-09T20:40:32.000Z",
      "arch": "aarch64",
      "commit": "791dee01ced7f12d1abf9c333ed2b2ea442bf334",
      "fileid": "https://r2.ropensci.org/ef052c104070ee1705fc70b9a07be2aa1787bda2feb249147c2d1c8a97f0bfc9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/42694431825"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-11-09T20:43:08.000Z",
      "arch": "x86_64",
      "commit": "791dee01ced7f12d1abf9c333ed2b2ea442bf334",
      "fileid": "https://r2.ropensci.org/a75e8eebc5eafb1a088da7a08a896bf6f997e1f611244f7ba3377d9430f72aa7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/42694431825"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-11-09T20:40:45.000Z",
      "arch": "emscripten",
      "commit": "791dee01ced7f12d1abf9c333ed2b2ea442bf334",
      "fileid": "https://r2.ropensci.org/f82380446e481a0f5a3a771e26f95e0d8a2990f9f3167dbef78ac08aa8087369",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/42694431825"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-11-09T20:42:26.000Z",
      "arch": "aarch64",
      "commit": "791dee01ced7f12d1abf9c333ed2b2ea442bf334",
      "fileid": "https://r2.ropensci.org/f9160e69a31976f9e757f5f349b55851bf6ec4bdfde698ad435207abaa902727",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/42694431825"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-11-09T20:40:02.000Z",
      "arch": "x86_64",
      "commit": "791dee01ced7f12d1abf9c333ed2b2ea442bf334",
      "fileid": "https://r2.ropensci.org/aee1ae72ce496bc54b89800488e72773bc3be64f0ff598ced35d7fddda011205",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/42694431825"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-11-09T20:40:04.000Z",
      "arch": "x86_64",
      "commit": "791dee01ced7f12d1abf9c333ed2b2ea442bf334",
      "fileid": "https://r2.ropensci.org/f84c382e5cf7617d4381205a671e7babcd9b107c643c65c13dbb4e95cc19a003",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/42694431825"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-11-09T20:41:46.000Z",
      "arch": "aarch64",
      "commit": "791dee01ced7f12d1abf9c333ed2b2ea442bf334",
      "fileid": "https://r2.ropensci.org/7987d1c142149c0097d051aa323dabb3157d9ba8e0a1a5b467c319ac228ff3a9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/42694431825"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-11-09T20:40:04.000Z",
      "arch": "x86_64",
      "commit": "791dee01ced7f12d1abf9c333ed2b2ea442bf334",
      "fileid": "https://r2.ropensci.org/c9e80a8d0ab1101be29d08232a92ede676e02b716322312875338cd795f5bbd8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/42694431825"
    }
  ]
}