{
  "_id": "6ad4adaad423e4b0c576bb13",
  "Package": "forestBalance",
  "Title": "Balancing Confounder Distributions with Forest Energy Balancing",
  "Version": "0.1.3",
  "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-09-18 19:30:59 UTC",
  "RemoteUrl": "https://github.com/jaredhuling/forestbalance",
  "RemoteRef": "HEAD",
  "RemoteSha": "a6f2e5bab0642f8ad97e7f7f08c56cdac4d2aa26",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-18 11:21:09 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.3.tar.gz",
  "_fileid": "https://r2.ropensci.org/30bbf24943f19fb4b379876b870e4a56bae8752b2219cd90e54ef78ce85f118a",
  "_filesize": 567846,
  "_sha256": "30bbf24943f19fb4b379876b870e4a56bae8752b2219cd90e54ef78ce85f118a",
  "_expires": "2027-01-26T11:29:44.000Z",
  "_created": "2026-10-18T11:21:09.000Z",
  "_published": "2026-10-18T11:29:46.666Z",
  "_buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/39122637139",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 117661999903,
      "time": 128,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12134618943"
    },
    {
      "job": 117661999860,
      "time": 148,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12134263974"
    },
    {
      "job": 117661999807,
      "time": 129,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12134169409"
    },
    {
      "job": 117661999833,
      "time": 144,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12135112286"
    },
    {
      "job": 117661999845,
      "time": 122,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12134957895"
    },
    {
      "job": 117661999811,
      "time": 296,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12134363513"
    },
    {
      "job": 117661999842,
      "time": 142,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12135102441"
    },
    {
      "job": 117661999822,
      "time": 471,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12134478306"
    },
    {
      "job": 117661225569,
      "time": 228,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12134513967"
    },
    {
      "job": 117661999824,
      "time": 103,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12134184289"
    },
    {
      "job": 117661999851,
      "time": 314,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12134289189"
    },
    {
      "job": 117662000010,
      "time": 155,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12134853402"
    },
    {
      "job": 117661999914,
      "time": 125,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12134584167"
    },
    {
      "job": 117661999891,
      "time": 209,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12134589203"
    },
    {
      "job": 117661999984,
      "time": 115,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12134808503"
    }
  ],
  "_upstream": "https://github.com/jaredhuling/forestbalance",
  "_commit": {
    "id": "a6f2e5bab0642f8ad97e7f7f08c56cdac4d2aa26",
    "author": "Jared Huling <jaredhuling@gmail.com>",
    "committer": "Jared Huling <jaredhuling@gmail.com>",
    "message": "updates to iteration numbers\n",
    "time": 1789759859
  },
  "_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
    },
    {
      "week": "2026-37",
      "n": 1
    },
    {
      "week": "2026-38",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2026-04-01"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "jaredhuling",
      "count": 56,
      "uuid": 3196112
    }
  ],
  "_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": 362,
    "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/manual.pdf",
    "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-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.225309281725863,
  "_indexed": true,
  "_nocasepkg": "forestbalance",
  "_universes": [
    "jaredhuling"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.3",
      "date": "2026-10-18T11:23:14.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "a6f2e5bab0642f8ad97e7f7f08c56cdac4d2aa26",
      "fileid": "https://r2.ropensci.org/3387ecd87433849de0e24a95296d31ef3cfc2b18679f828d1c3c495a949e80f4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/39122637139"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.3",
      "date": "2026-10-18T11:23:21.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "a6f2e5bab0642f8ad97e7f7f08c56cdac4d2aa26",
      "fileid": "https://r2.ropensci.org/1588cb14e435019653644446fb487771ef28b0da9985cbfc6bcd3c84f3526bbf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/39122637139"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.3",
      "date": "2026-10-18T11:23:15.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "a6f2e5bab0642f8ad97e7f7f08c56cdac4d2aa26",
      "fileid": "https://r2.ropensci.org/56929da9a81098e97d4dfa40882fc37024b08b5883e287568966f6c02a529332",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/39122637139"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.3",
      "date": "2026-10-18T11:23:18.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "a6f2e5bab0642f8ad97e7f7f08c56cdac4d2aa26",
      "fileid": "https://r2.ropensci.org/2a52cc4ae5e87bc930ac1c96ef9fe83685f54cbf1a093dbf6f40e2fff0b97c23",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/39122637139"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.3",
      "date": "2026-10-18T11:22:57.000Z",
      "arch": "aarch64",
      "commit": "a6f2e5bab0642f8ad97e7f7f08c56cdac4d2aa26",
      "fileid": "https://r2.ropensci.org/e6732b7ef77f77c41a2f1e0b4b7b7d2621bc49a1e8720b004dac4d90977ec175",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/39122637139"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.3",
      "date": "2026-10-18T11:24:34.000Z",
      "arch": "x86_64",
      "commit": "a6f2e5bab0642f8ad97e7f7f08c56cdac4d2aa26",
      "fileid": "https://r2.ropensci.org/d6af8a78cf30e388341f673880e459d5c0dd586ce018d2e75b60d12f930a1cf0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/39122637139"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.3",
      "date": "2026-10-18T11:23:24.000Z",
      "arch": "aarch64",
      "commit": "a6f2e5bab0642f8ad97e7f7f08c56cdac4d2aa26",
      "fileid": "https://r2.ropensci.org/ce35fc089c7f145138837bf754f7ce2b319ef1642bfbd2198028d3552c7c10a1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/39122637139"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.3",
      "date": "2026-10-18T11:26:34.000Z",
      "arch": "x86_64",
      "commit": "a6f2e5bab0642f8ad97e7f7f08c56cdac4d2aa26",
      "fileid": "https://r2.ropensci.org/aa31fff5812811979c77a9c5d817c4cb1b1122902117ce63573b637f6f6e0fdb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/39122637139"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.3",
      "date": "2026-10-18T11:23:13.000Z",
      "arch": "emscripten",
      "commit": "a6f2e5bab0642f8ad97e7f7f08c56cdac4d2aa26",
      "fileid": "https://r2.ropensci.org/0ee3f458bafc33cecc190f42b7a7a0893e38d7ce4dbe60921a634379d20e9f23",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/39122637139"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.3",
      "date": "2026-10-18T11:25:52.000Z",
      "arch": "aarch64",
      "commit": "a6f2e5bab0642f8ad97e7f7f08c56cdac4d2aa26",
      "fileid": "https://r2.ropensci.org/e93f71be4c533aed91e8d87e64e8dd1d5db23751be9aa4ddbf9dc0abf24fe59f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/39122637139"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.3",
      "date": "2026-10-18T11:22:23.000Z",
      "arch": "x86_64",
      "commit": "a6f2e5bab0642f8ad97e7f7f08c56cdac4d2aa26",
      "fileid": "https://r2.ropensci.org/200323f35e1d8d2bc4a9520c98dd97c79c212525caf184b5db9910596364e929",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/39122637139"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.3",
      "date": "2026-10-18T11:22:34.000Z",
      "arch": "x86_64",
      "commit": "a6f2e5bab0642f8ad97e7f7f08c56cdac4d2aa26",
      "fileid": "https://r2.ropensci.org/4ee783c298f1080b017c0859b6146e34f5d196b0e48fa33fdd3cf005f747422d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/39122637139"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.3",
      "date": "2026-10-18T11:24:16.000Z",
      "arch": "aarch64",
      "commit": "a6f2e5bab0642f8ad97e7f7f08c56cdac4d2aa26",
      "fileid": "https://r2.ropensci.org/62a1a36ef732c0ecbc6ff7adb831bcf023d0cf2b6a6d69ecd8c220c92921eab9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/39122637139"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.3",
      "date": "2026-10-18T11:22:28.000Z",
      "arch": "x86_64",
      "commit": "a6f2e5bab0642f8ad97e7f7f08c56cdac4d2aa26",
      "fileid": "https://r2.ropensci.org/bc44668875afdda69838fd5600882ba7da6419f57f87801a126ee02032237c0b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/39122637139"
    }
  ]
}