The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

pre: Prediction Rule Ensembles

Derives 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.

Version: 1.0.8
Depends: R (≥ 4.1.0)
Imports: earth, Formula, glmnet, graphics, methods, partykit (≥ 1.2-0), rpart, stringr, survival, Matrix, MatrixModels
Suggests: interp, datasets, doParallel, foreach, glmertree, grid, mlbench, testthat, mboost, ggplot2, caret, pROC, knitr, rmarkdown, mice, shape, randomForest
Published: 2025-09-06
DOI: 10.32614/CRAN.package.pre
Author: Marjolein Fokkema [aut, cre], Benjamin Christoffersen [aut]
Maintainer: Marjolein Fokkema <m.fokkema at fsw.leidenuniv.nl>
BugReports: https://github.com/marjoleinF/pre/issues
License: GPL-2 | GPL-3
URL: https://github.com/marjoleinF/pre
NeedsCompilation: no
Citation: pre citation info
Materials: README, NEWS
In views: MachineLearning
CRAN checks: pre results

Documentation:

Reference manual: pre.html , pre.pdf
Vignettes: Dealing with missing data in fitting prediction rule ensembles (source, R code)
Tuning parameters of function pre (source, R code)
More sparse and relaxed: Fitting rule ensembles with the relaxed lasso (source, R code)
Faster computation (source, R code)

Downloads:

Package source: pre_1.0.8.tar.gz
Windows binaries: r-devel: pre_1.0.8.zip, r-release: pre_1.0.8.zip, r-oldrel: pre_1.0.8.zip
macOS binaries: r-release (arm64): pre_1.0.8.tgz, r-oldrel (arm64): pre_1.0.8.tgz, r-release (x86_64): pre_1.0.8.tgz, r-oldrel (x86_64): pre_1.0.8.tgz
Old sources: pre archive

Reverse dependencies:

Reverse imports: FREEtree
Reverse suggests: plotmo

Linking:

Please use the canonical form https://CRAN.R-project.org/package=pre to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.