{
  "_id": "6a106539acfb0bcc41ca8ad7",
  "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-05-08 06:30:54 UTC",
    "User": "root"
  },
  "Author": "Jared Huling [aut, cre],\nSimion De [aut]",
  "Maintainer": "Jared Huling <jaredhuling@gmail.com>",
  "MD5sum": "177981cd5b9593c1eda3e353a8d32831",
  "_user": "jaredhuling",
  "_type": "src",
  "_file": "forestBalance_0.1.1.tar.gz",
  "_fileid": "a48b2165e6c30fb500f2c7383d88816bf45ed4ab80fb0d8359ef28e31bab12e5",
  "_filesize": 547908,
  "_sha256": "a48b2165e6c30fb500f2c7383d88816bf45ed4ab80fb0d8359ef28e31bab12e5",
  "_created": "2026-05-08T06:30:54.000Z",
  "_published": "2026-05-22T14:16:25.630Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77397692504,
      "time": 151,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "6873278128"
    },
    {
      "job": 77397692355,
      "time": 163,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "6873280161"
    },
    {
      "job": 77397693064,
      "time": 144,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "6873275579"
    },
    {
      "job": 77397692809,
      "time": 178,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "6873284989"
    },
    {
      "job": 77397693820,
      "time": 106,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "6873266490"
    },
    {
      "job": 77397692564,
      "time": 190,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "6873286483"
    },
    {
      "job": 77397692813,
      "time": 128,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "6873272160"
    },
    {
      "job": 77397692655,
      "time": 179,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "6873283709"
    },
    {
      "job": 77397692243,
      "time": 234,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6873240888"
    },
    {
      "job": 77397691912,
      "time": 123,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7162690364"
    },
    {
      "job": 77397692407,
      "time": 132,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "6873272849"
    },
    {
      "job": 77397692672,
      "time": 151,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "6873277029"
    },
    {
      "job": 77397692803,
      "time": 186,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "6873285641"
    }
  ],
  "_buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/25540670412",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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",
    "uuid": 3196112
  },
  "_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",
    "description": "Assistant Professor in the Division of Biostatistics 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.0",
  "_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": "14.2.0-4ubuntu2~24.04.1",
      "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-05-08T06:33:24.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "71c84103e8a833e2395f78bce34fee8b145ba8ae663dfd59183b0a5965be26b7",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/25540670412"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-05-08T06:33:29.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "4b25048db2bfe39e66723f335e1a6d3ba7c5c295bb2663a3f79796e75df9014b",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/25540670412"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-05-08T06:33:15.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "b194b6705581cf49391f221bb563e6a3752804319ce86252e1c40c61a60a0a4d",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/25540670412"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-05-08T06:33:50.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "d36e1a9354cf5f52366a1f5e2f68ab0d03a940d4df19885541c6cb6f378fbbe3",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/25540670412"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-05-08T06:32:41.000Z",
      "arch": "aarch64",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "3cabfb9857335e24322a184c7a7819fa766dcf04651c95090da690712dbbbfa7",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/25540670412"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-05-08T06:33:37.000Z",
      "arch": "x86_64",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "ef1b98bb53c9830a50257df2f2448ca46973490a2f91f7670fcfb4b121684b00",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/25540670412"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-05-08T06:33:01.000Z",
      "arch": "aarch64",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "6b7346ea7ca240e8977473acb4c88be456ac47d76438c72b466ce6857020b216",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/25540670412"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-05-08T06:33:26.000Z",
      "arch": "x86_64",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "b8499db13a151e5ac742f9a3fe00b5425c7f685d1540d10400e0504bca265667",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/25540670412"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-05-08T06:32:32.000Z",
      "arch": "x86_64",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "0b9135cbc352af5c91341ac02d10ba1b2137e9651f7332aa4657525c924a1512",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/25540670412"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-05-08T06:32:39.000Z",
      "arch": "x86_64",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "1287fe6e8b4374b623f417307d31104f3e7e9731a1befc3a4cd6fa868bcd3ac6",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/25540670412"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-05-08T06:33:12.000Z",
      "arch": "x86_64",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "56002e5b71100111863fcf4ff41f57596ad6ba077978a39c8f61672adb0c8308",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/25540670412"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-05-22T14:15:56.000Z",
      "arch": "emscripten",
      "commit": "057d235b842a8f1ec45866af618b3bddb085141e",
      "fileid": "ff76be445076329f44b2bf62ef8709b3b33b03ea35f149000df5fe33ccf180ae",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jaredhuling/actions/runs/25540670412"
    }
  ]
}