Skip to content

Prediction Rule Ensembles

1packages dependsuggested by 1
33.8Kdownloads / year
0.0%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.1.1
  • 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

CRAN checks
13OK
Slowest check: 7.9 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-09-06
  • ERROR10 OK, 3 ERROR2026-07-25
  • OK13 OK2026-06-14
  • ERROR11 OK, 2 ERROR2026-05-05
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.1.1
READMEYes · 1,939 wordsVignettesYes · 5 · dynamicNEWSYes · 100% structured · mentions 1.1.1Citation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Cites a JSS article
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

33.8K
CRAN downloads in the past year
Rank #2,463 · ~93/day · ~2.8K/mo
Daily download trend is not available in this view yet.
2.3K30 days
6.5K90 days
33.8K1 year
Compare downloads with other packages →
Also on147 r2u7 autocran945 conda_forge98 c2d4u

Repository

58Stars
17Forks
3Open issues
0Open PRs
0Releases
230Commits
5Commit identities
230 commits · Last activity 2026-10-13 · 0% stars, 30d · The default branch showed an older version (1.0.8) than CRAN on 2026-10-11
Responsiveness
How these are sampled
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

2024-05-22 · 572026-07-07 · 58
PracticesBeta

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.

Docs source (1)
README.Rmd
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
21 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 4.1.0
Imports (11)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Suggested by 1
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (3)
Author, Maintainer since 0.1 (2016)
Author · added in 0.3.0
Contributor · added in 1.1.0
Releases (22)

Pick two releases to compare their code metrics.

Show 19 earlier eventsHide 19 earlier events
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 1.0.0
    record
    2020-03-06 · diff ↗
  • unarchivedReturned to CRAN
    2019-11-29
  • 0.7.2
    record
    2019-11-29 · diff ↗
  • archivedRemoved from CRAN
    2019-11-25
    check problems were not corrected in time
  • 0.7.1
    record
    2019-04-26 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.7.0
    record
    2019-04-01 · diff ↗ ·
    added 1 export
    explain
  • 0.6.0
    record
    2018-08-03 · diff ↗ ·
    added 1 export
    caret_pre_model
  • 0.5.0
    record
    2018-05-07 · diff ↗ ·
    added 2 exports
    maxdepth_sampler, gpe_rules_pre
  • R
    R 3.5.0 released · 2018-04-23
  • 0.4-1
    record
    2018-01-23 · diff ↗
  • 0.4
    record
    2017-08-31 · diff ↗
  • 0.3.0
    record
    2017-08-03 · diff ↗ ·
    added 10 exports
    gpe, gpe_trees, gpe_linear, gpe_earth, rTerm, lTerm, eTerm, gpe_sample, gpe_cv.glmnet, corplot
  • 0.2
    record
    2017-04-26 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 0.1
    record
    2016-12-24
  • R
    R 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.

APA

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

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.

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