Applies Multiclass AdaBoost.M1, SAMME and Bagging
Overview
It implements Freund and Schapire's Adaboost.M1 algorithm and Breiman's Bagging algorithm using classification trees as individual classifiers. Once these classifiers have been trained, they can be used to predict on new data. Also, cross validation estimation of the error can be done. Since version 2.0 the function margins() is available to calculate the margins for these classifiers. Also a higher flexibility is achieved giving access to the rpart.control() argument of 'rpart'. Four important new features were introduced on version 3.0, AdaBoost-SAMME (Zhu et al., 2009) is implemented and a new function errorevol() shows the error of the ensembles as a function of the number of iterations. In addition, the ensembles can be pruned using the option 'newmfinal' in the predict.bagging() and predict.boosting() functions and the posterior probability of each class for observations can be obtained. Version 3.1 modifies the relative importance measure to take into account the gain of the Gini index given by a variable in each tree and the weights of these trees. Version 4.0 includes the margin-based ordered aggregation for Bagging pruning (Guo and Boukir, 2013) and a function to auto prune the 'rpart' tree. Moreover, three new plots are also available importanceplot(), plot.errorevol() and plot.margins(). Version 4.1 allows to predict on unlabeled data. Version 4.2 includes the parallel computation option for some of the functions. Version 5.0 includes the Boosting and Bagging algorithms for label ranking (Albano, Sciandra and Plaia, 2023).
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-02
Show 2 earlier changesHide 2 earlier changes
- ERROR11 OK, 1 ERROR2026-04-25
- OK14 OK2026-03-10
Documentation
- Help pages
- 19 (1 internal)includes a package overview page
- Examples that run
- 88%15 run in a plain check · 2 never run
- Exported functions with examples
- 100%
- Documented parameters
- not tracked
- Return-value docs
- not tracked
- Help pages citing references
- 95%
Downloads
Dependencies
Installing adabag adds 70 packages (39 with compiled code, 51 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
Datasets
People & History
Maintainer since at least 1.1 (2007)
Show 8 of 15 peopleHide 8 people
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 5.1Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 5.02023-05-31 · diff ↗ ·
added 1 export
pattern:bagging, bagging.cv, boosting, boosting.cv, errorevol, margins, autoprune,MarginOrderedPruning.Bagging, importanceplot, prep.data, Ensemble_ranking_IW, errorevol_ranking_vector_IW - 4.32023-05-01 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- 4.22018-01-19 · diff ↗
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- 4.12015-10-14 · diff ↗ ·
removed 1 export
pattern:bagging, bagging.cv, boosting, boosting.cv, errorevol, margins, autoprune,MarginOrderedPruning.Bagging, importanceplot
Show 24 earlier eventsHide 24 earlier events
- RR 3.2.0 released · 2015-04-16
- 4.02014-12-21 · diff ↗ ·
removed 1 export
pattern:bagging, bagging.cv, boosting, boosting.cv, errorevol, marginsadded 1 export
pattern:bagging, bagging.cv, boosting, boosting.cv, errorevol, margins, autoprune,MarginOrderedPruning.Bagging, importanceplot - RR 3.1.0 released · 2014-04-10
- 3.22013-08-16 · diff ↗
- RR 3.0.0 released · 2013-04-03
- 3.12012-07-05 · diff ↗ ·
added 1 export
pattern:bagging, bagging.cv, boosting, boosting.cv, errorevol, margins - RR 2.15.0 released · 2012-03-30
- 3.02011-12-22 · diff ↗
- RR 2.14.0 released · 2011-10-31
- 2.12011-10-23 · diff ↗
- 2.02011-07-23 · diff ↗
- RR 2.13.0 released · 2011-04-13
- RR 2.12.0 released · 2010-10-15
- RR 2.11.0 released · 2010-04-22
- RR 2.10.0 released · 2009-10-26
- RR 2.9.0 released · 2009-04-17
- RR 2.8.0 released · 2008-10-20
- RR 2.7.0 released · 2008-04-22
- 1.12007-10-25 · diff ↗
- RR 2.6.0 released · 2007-10-03
- RR 2.5.0 released · 2007-04-24
- RR 2.4.0 released · 2006-10-03
- 1.02006-06-06
- RR 2.3.0 released · 2006-04-24
Package metadata
- First published
- 2006-06-06
- Total releases
- 13 / 20 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 4.0.0
- Bundled data
- 76 KB / 1 file
- Download size
- 108 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("adabag")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.18637/jss.v054.i02.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.