grf
2.6.1Generalized Random Forests
Overview
Forest-based statistical estimation and inference. GRF provides non-parametric methods for heterogeneous treatment effects estimation (optionally using right-censored outcomes, multiple treatment arms or outcomes, or instrumental variables), as well as least-squares regression, quantile regression, and survival regression, all with support for missing covariates.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- WARNING12 OK, 1 WARNING2026-06-08
- OK12 OK2026-04-25
Show 3 earlier changesHide 3 earlier changes
- NOTE11 OK, 3 NOTE2026-04-22
- ERROR10 OK, 3 NOTE, 1 ERROR2026-04-18
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 65 (13 internal)includes a package overview page
- Examples that run
- 0%39 only when donttest examples are enabled (R CMD check --as-cran) · 1 never run
- Exported functions with examples
- 96%
- Documented parameters
- 91%
- Return-value docs
- 100%
- Help pages citing references
- 28%
Downloads
Repository
- PRs merged (all time)
- 95%
- Median days to close, 50 most recently updated closed issues
- 28
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
PRs over time
5 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/grf-labs/grf on 2026-10-11.
GitHub Pages site last deployed 2026-04-30 · The repository has a site deploy workflow
Dependencies
Installing grf adds 6 packages (5 with compiled code, 5.9 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppEigen 1.7 MB, sandwich 1.4 MB.
Show all 35 packagesHide all 35 packages
Code & Tests
Datasets
People & History
Previously maintained by Julie Tibshirani (0.9.2 to 2.3.1).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 2.6.1Latest
- 2.6.02026-03-03 · diff ↗
- 2.5.02025-10-09 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 2.4.02024-11-15 · diff ↗ ·
removed 7 exports
average_late, average_partial_effect, custom_forest, get_sample_weights, tune_causal_forest, tune_instrumental_forest, tune_regression_forestadded 1 export
grf_options - RR 4.4.0 released · 2024-04-24
- 2.3.22024-02-25 · diff ↗
- 2.3.12023-10-01 · diff ↗
- 2.3.02023-05-11 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 2.2.1
- 2.2.0
- RR 4.2.0 released · 2022-04-22
- 2.1.0
- 2.0.22021-07-14 · diff ↗
Show 21 earlier eventsHide 21 earlier events
- 2.0.12021-07-06 · diff ↗
- 2.0.02021-06-22 · diff ↗ ·
removed 2 exports
tune_ll_causal_forest, tune_ll_regression_forestadded 9 exports
causal_survival_forest, generate_causal_data, generate_causal_survival_data, get_forest_weights, get_leaf_node, get_scores, multi_arm_causal_forest, multi_regression_forest, probability_forest - RR 4.1.0 released · 2021-05-18
- 1.2.0
- RR 4.0.0 released · 2020-04-24
- 1.1.02020-03-12 · diff ↗
- 1.0.12019-12-06 · diff ↗
- 1.0.0
- 0.10.4
- 0.10.32019-05-27 · diff ↗ ·
removed 2 exports
local_linear_forest, tune_local_linear_forestadded 4 exports
boosted_regression_forest, ll_regression_forest, merge_forests, tune_ll_regression_forest - RR 3.6.0 released · 2019-04-26
- 0.10.22018-11-24 · diff ↗
- 0.10.12018-09-24 · diff ↗ ·
added 3 exports
local_linear_forest, test_calibration, tune_local_linear_forest - 0.10.02018-05-09 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 0.9.62018-04-14 · diff ↗ ·
removed 1 export
estimate_average_effectadded 5 exports
average_treatment_effect, average_partial_effect, get_sample_weights, tune_causal_forest, tune_regression_forest - 0.9.5
- 0.9.42017-11-27 · diff ↗
- 0.9.32017-07-21 · diff ↗
- 0.9.22017-07-04
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2017-07-04
- Total releases
- 27 / 9 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 217 KB / 2 files
- Download size
- 612 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("grf")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.