Skip to content

grf

2.6.1

Generalized Random Forests

24packages dependsuggested by 11
147Kdownloads / year
0.0%test coverage
13/13flavors OK

Overview

About

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

CRAN checks
13OK
Slowest check: 12.6 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 2.6.1
READMENoVignettesYes · 1 · dynamicNEWSNoCitation fileNo
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

147K
CRAN downloads in the past year
Rank #1,115 · ~403/day · ~12.3K/mo
Daily download trend is not available in this view yet.
15.4K30 days
32.2K90 days
147K1 year
Compare downloads with other packages →
Also on1.1K r2u5 autocran10.1K conda_forge150 c2d4u

Repository

1,117Stars
282Forks
69Open issues
0Open PRs
0Releases
2,137Commits
30Commit identities
causal-inferencerandom-foresteconometricsmachine-learningstatisticscausal-forest
License file reads as GPL-3.0 · 2,137 commits · Last activity 2026-04-30 · +0.6% stars, 30d
Responsiveness
How these are sampled
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

2025-10-16 · 1,0402026-10-11 · 1,117
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsAzure Pipelines
Governance and community (1)
Issue templates
Docs source (2)

GitHub Pages site last deployed 2026-04-30 · The repository has a site deploy workflow

How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
12 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.5.0
Imports (6)
LinkingTo (2)
Enhances (0)
none

Datasets

People & History

People (9)
Author, Maintainer since 2.3.2 (2024) · added in 0.10.4
Contributor · added in 0.9.6
Contributor · added in 0.10.3
Contributor · added in 0.10.4
Contributor · added in 0.9.6
Contributor

Previously maintained by Julie Tibshirani (0.9.2 to 2.3.1).

Listed in earlier versions (1)
all contributors to the included version of Eigen
no longer listed · 0.9.2 to 0.9.4
Releases (27)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 2.6.1Latest
    record
    2026-03-04 · current release · diff ↗
  • 2.6.0
    record
    2026-03-03 · diff ↗
  • 2.5.0
    record
    2025-10-09 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 2.4.0
    record
    2024-11-15 · diff ↗ ·
    removed 7 exports
    average_late, average_partial_effect, custom_forest, get_sample_weights, tune_causal_forest, tune_instrumental_forest, tune_regression_forest
    added 1 export
    grf_options
  • R
    R 4.4.0 released · 2024-04-24
  • 2.3.2
    record
    2024-02-25 · diff ↗
  • 2.3.1
    record
    2023-10-01 · diff ↗
  • 2.3.0
    record
    2023-05-11 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 2.2.1
    record
    2022-12-15 · diff ↗ ·
    added 1 export
    rank_average_treatment_effect.fit
  • 2.2.0
    record
    2022-08-06 · diff ↗ ·
    added 1 export
    lm_forest
  • R
    R 4.2.0 released · 2022-04-22
  • 2.1.0
    record
    2022-03-17 · diff ↗ ·
    added 1 export
    rank_average_treatment_effect
  • 2.0.2
    record
    2021-07-14 · diff ↗
Show 21 earlier eventsHide 21 earlier events
  • 2.0.1
    record
    2021-07-06 · diff ↗
  • 2.0.0
    record
    2021-06-22 · diff ↗ ·
    removed 2 exports
    tune_ll_causal_forest, tune_ll_regression_forest
    added 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
  • R
    R 4.1.0 released · 2021-05-18
  • 1.2.0
    record
    2020-06-04 · diff ↗ ·
    added 1 export
    survival_forest
  • R
    R 4.0.0 released · 2020-04-24
  • 1.1.0
    record
    2020-03-12 · diff ↗
  • 1.0.1
    record
    2019-12-06 · diff ↗
  • 1.0.0
    record
    2019-12-02 · diff ↗ ·
    added 2 exports
    best_linear_projection, tune_instrumental_forest
  • 0.10.4
    record
    2019-09-03 · diff ↗ ·
    added 2 exports
    average_late, tune_ll_causal_forest
  • 0.10.3
    record
    2019-05-27 · diff ↗ ·
    removed 2 exports
    local_linear_forest, tune_local_linear_forest
    added 4 exports
    boosted_regression_forest, ll_regression_forest, merge_forests, tune_ll_regression_forest
  • R
    R 3.6.0 released · 2019-04-26
  • 0.10.2
    record
    2018-11-24 · diff ↗
  • 0.10.1
    record
    2018-09-24 · diff ↗ ·
    added 3 exports
    local_linear_forest, test_calibration, tune_local_linear_forest
  • 0.10.0
    record
    2018-05-09 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.9.6
    record
    2018-04-14 · diff ↗ ·
    removed 1 export
    estimate_average_effect
    added 5 exports
    average_treatment_effect, average_partial_effect, get_sample_weights, tune_causal_forest, tune_regression_forest
  • 0.9.5
    record
    2018-01-09 · diff ↗ ·
    added 1 export
    variable_importance
  • 0.9.4
    record
    2017-11-27 · diff ↗
  • 0.9.3
    record
    2017-07-21 · diff ↗
  • 0.9.2
    record
    2017-07-04
  • R
    R 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")
Sverdrup, E., Athey, S., Friedberg, R., Hadad, V., Hirshberg, D., Miner, L., Tibshirani, J., Wager, S., & Wright, M. (2026). grf: Generalized Random Forests (Version 2.6.1) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for grf version 2.6.1 [Data set]. HJJB, LLC. Data release v2026-10-17. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy