Prediction Rule Ensembles
Overview
Fits prediction rule ensembles (PREs). Largely follows the procedure for deriving PREs as described in Friedman & Popescu (2008; DOI:10.1214/07-AOAS148), with adjustments and improvements described in Fokkema (2020; DOI:10.18637/jss.v092.i12) and Fokkema & Strobl (2020; DOI:10.1037/met0000256). The main function pre() derives prediction rule ensembles consisting of rules and/or linear terms for continuous, binary, count, multinomial, survival and multivariate continuous responses. Function gpe() derives generalized prediction ensembles, consisting of rules, hinge and linear functions of the predictor variables.
- Bug fix: Fixed function shap() which did not deal with factor
predictors correctly.
- Extended shap vignette with simple scatter plots of SHAP values.
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-06
- ERROR10 OK, 3 ERROR2026-07-25
- OK13 OK2026-06-14
- ERROR11 OK, 2 ERROR2026-05-05
- OK14 OK2026-03-10
Documentation
- Help pages
- 34
- Examples that run
- 17%4 run in a plain check · 18 only when donttest examples are enabled (R CMD check --as-cran) · 1 never run · 1 hold no code
- Exported functions with examples
- 82%
- Documented parameters
- 98%
- Return-value docs
- 77%
- Help pages citing references
- 41%
Downloads
Repository
- PRs merged (all time)
- 90%
- Median days to close, 50 most recently updated closed issues
- 48
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
1 development-tooling and community-health practice detected across 1 family in the upstream repository
Checks run against github.com/marjoleinf/pre on 2026-10-11.
Dependencies
Installing pre adds 26 packages (15 with compiled code, 31 MB of source tarballs). Heaviest: stringi 11 MB, glmnet 2.7 MB, partykit 2.1 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 1.1.1Latest
- 1.1.0
- 1.0.92026-06-09 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 1.0.82025-09-06 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.0.7
- RR 4.3.0 released · 2023-04-21
- 1.0.62023-02-12 · diff ↗
- 1.0.52022-06-10 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.0.42022-03-30 · diff ↗
- 1.0.32022-03-12 · diff ↗
- 1.0.22022-02-25 · diff ↗
- 1.0.1
Show 19 earlier eventsHide 19 earlier events
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 1.0.02020-03-06 · diff ↗
- unarchivedReturned to CRAN2019-11-29
- 0.7.22019-11-29 · diff ↗
- archivedRemoved from CRAN2019-11-25check problems were not corrected in time
- 0.7.12019-04-26 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.7.0
- 0.6.0
- 0.5.0
- RR 3.5.0 released · 2018-04-23
- 0.4-12018-01-23 · diff ↗
- 0.42017-08-31 · diff ↗
- 0.3.02017-08-03 · diff ↗ ·
added 10 exports
gpe, gpe_trees, gpe_linear, gpe_earth, rTerm, lTerm, eTerm, gpe_sample, gpe_cv.glmnet, corplot - 0.22017-04-26 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 0.12016-12-24
- RR 3.3.0 released · 2016-05-03
Package metadata
- First published
- 2016-12-24
- Total releases
- 22 / 10 yrs
- License
- GPL-2 | GPL-3 OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 4.2 KB / 1 file
- Download size
- 1.7 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("pre")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.18637/jss.v092.i12.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.