{
  "_id": "6a4cbcde07c3fd5c32610053",
  "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-04-07 16:57:12 UTC",
  "RemoteUrl": "https://github.com/jaredhuling/forestbalance",
  "RemoteRef": "HEAD",
  "RemoteSha": "057d235b842a8f1ec45866af618b3bddb085141e",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-07-07 08:36:58 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/ed5a051ecfe336b2fe4f485978b782c3e08bc1fd40a3a3aabad5fa4ca4733e8c",
  "_filesize": 548696,
  "_sha256": "ed5a051ecfe336b2fe4f485978b782c3e08bc1fd40a3a3aabad5fa4ca4733e8c",
  "_expires": "2026-10-15T08:46:21.000Z",
  "_created": "2026-07-07T08:36:58.000Z",
  "_published": "2026-07-07T08:46:22.642Z",
  "_jobs": [
    {
      "job": 85572693833,
      "time": 194,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "8132466666"
    },
    {
      "job": 85572693873,
      "time": 156,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "8132451192"
    },
    {
      "job": 85572693860,
      "time": 166,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "8132455671"
    },
    {
      "job": 85572693792,
      "time": 163,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "8132454261"
    },
    {
      "job": 85572693846,
      "time": 87,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "8132509150"
    },
    {
      "job": 85572693934,
      "time": 183,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "8132469858"
    },
    {
      "job": 85572693875,
      "time": 110,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "8132588782"
    },
    {
      "job": 85572693861,
      "time": 327,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "8132520496"
    },
    {
      "job": 85572064781,
      "time": 200,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8132391591"
    },
    {
      "job": 85572693771,
      "time": 150,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8132449252"
    },
    {
      "job": 85572693822,
      "time": 160,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "8132453038"
    },
    {
      "job": 85572693800,
      "time": 130,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "8132441741"
    },
    {
      "job": 85572693788,
      "time": 122,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "8132439418"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/28852810964",
  "_status": "success",
  "_upstream": "https://github.com/jaredhuling/forestbalance",
  "_commit": {
    "id": "057d235b842a8f1ec45866af618b3bddb085141e",
    "author": "Jared Huling <jaredhuling@gmail.com>",
    "committer": "Jared Huling <jaredhuling@gmail.com>",
    "message": "updates version, adds ATT/ATC estimation\n",
    "time": 1775581032
  },
  "_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
  },
  "_distro": "resolute",
  "_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
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2026-04-01"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "jaredhuling",
      "count": 53,
      "uuid": 3196112
    }
  ],
  "_userbio": {
    "uuid": 3196112,
    "type": "user",
    "name": "Jared Huling",
    "followers": 98,
    "description": "Associate Professor in the Division of Biostatistics & Health Data Science at the University of Minnesota"
  },
  "_downloads": {
    "count": 502,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/forestBalance"
  },
  "_devurl": "https://github.com/jaredhuling/forestbalance",
  "_searchresults": 14,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/forestBalance.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_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-03-27 22:34:43",
      "commits": 2
    },
    {
      "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-03-27 22:34:43",
      "commits": 5
    },
    {
      "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-03-27 22:34:43",
      "commits": 6
    },
    {
      "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 (default for large $n$)",
        "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-03-27 22:34:43",
      "commits": 12
    }
  ],
  "_score": 5.049218022670182,
  "_indexed": true,
  "_nocasepkg": "forestbalance",
  "_universes": [
    "jaredhuling"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-07-07T08:40:12.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "https://r2.ropensci.org/65e8a12ac77adaaca8a840014fd1f31c3adf0836aca439eef20577e0b177c6d8",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/28852810964"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-07-07T08:39:22.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "https://r2.ropensci.org/4920bc5536838bbeb1cf058962b7a857fe077d17aa806a5dbe1c475cf3c34578",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/28852810964"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-07-07T08:39:40.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "https://r2.ropensci.org/02007d217ba7ae1a6cb97211cc5acd3763a4d9febb34139cb7b86f6d0e1b795c",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/28852810964"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-07-07T08:39:30.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "https://r2.ropensci.org/003fc61177591c74fb4b54f8cc84cebd2f5dc3620d46e51149879b271f3273f0",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/28852810964"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-07-07T08:42:11.000Z",
      "arch": "aarch64",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "https://r2.ropensci.org/6f58639acc74f016191fd23b609e6801c2113c224a9f61b2781dea7b73b10008",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/28852810964"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-07-07T08:39:56.000Z",
      "arch": "x86_64",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "https://r2.ropensci.org/5da4e31f21a755bbb265ba0b6a663f3a4afe89b707441c9a2056401098df48d4",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/28852810964"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-07-07T08:45:30.000Z",
      "arch": "aarch64",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "https://r2.ropensci.org/e8bd5305bfa3f1ce7f13958f1475c03e9b34c70d9606ad66511fa9e05c6b59f6",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/28852810964"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-07-07T08:41:32.000Z",
      "arch": "x86_64",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "https://r2.ropensci.org/17441113d6fce02f522fb2510319ba06ce74c1058eddda56c59a92d154a1b0a5",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/28852810964"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-07-07T08:39:48.000Z",
      "arch": "emscripten",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "https://r2.ropensci.org/9d083f1fdc9ed2e5087589a2d6eb885d320dc48bd0522af836e6049985707f41",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/28852810964"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-07-07T08:39:04.000Z",
      "arch": "x86_64",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "https://r2.ropensci.org/b870f25d1609c27f75a8f3d2802c8b2f12536261df38313f9756065963c77197",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/28852810964"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-07-07T08:38:31.000Z",
      "arch": "x86_64",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "https://r2.ropensci.org/c7df2c8345644a5eb520804747687c269ebe44937e3ba5738bb39cd5d24b40ed",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/28852810964"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-07-07T08:38:24.000Z",
      "arch": "x86_64",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "https://r2.ropensci.org/2f3c4536ed0ac41f767bad8f26a12ec7cb0ecefac77d0fd78f3f9adf0bc3b4c2",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/28852810964"
    }
  ]
}