Skip to content

Applies Multiclass AdaBoost.M1, SAMME and Bagging

4packages dependsuggested by 3
79.1Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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

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

none known

Documentation

In release 5.1
READMENoVignettesNoNEWSNoCitation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Cites a JSS article
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

79.1K
CRAN downloads in the past year
Rank #1,757 · ~217/day · ~6.6K/mo
Daily download trend is not available in this view yet.
4.2K30 days
11.8K90 days
79.1K1 year
Compare downloads with other packages →
Also on327 r2u25 autocran1K conda_forge151 c2d4u

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)

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.

Depends (5)
R >= 4.0.0rpartcaretforeachdoParallel
Imports (4)
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
4direct
3indirect
Depends 1 · Imports 3
Suggested by 3
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (7)
Author, Maintainer · added in 5.1
Author · added in 5.1
Author · added in 5.1
Contributor · added in 5.0
Contributor · added in 5.1
Contributor · added in 5.1
Contributor · added in 5.0

Maintainer since at least 1.1 (2007)

Listed in earlier versions (15)
Show 8 of 15 peopleHide 8 people
Esteban Alfaro Cortes
no longer listed · 1.1 to 2.1
Matias Gamez Martinez
no longer listed · 1.1 to 2.1
Noelia Garcia Rubio
no longer listed · 1.1 to 2.1
Alfaro-Cortes
no longer listed · 3.0 to 3.1
Esteban
no longer listed · 3.0 to 5.0
Gamez-Martinez
no longer listed · 3.0 to 3.1
Garcia-Rubio
no longer listed · 3.0 to 3.1
Matias
no longer listed · 3.0 to 5.0
Releases (13)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 5.1Latest
    record
    2025-07-28 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 5.0
    record
    2023-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.3
    record
    2023-05-01 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 4.2
    record
    2018-01-19 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • 4.1
    record
    2015-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
  • R
    R 3.2.0 released · 2015-04-16
  • 4.0
    record
    2014-12-21 · diff ↗ ·
    removed 1 export
    pattern:bagging, bagging.cv, boosting, boosting.cv, errorevol, margins
    added 1 export
    pattern:bagging, bagging.cv, boosting, boosting.cv, errorevol, margins, autoprune,MarginOrderedPruning.Bagging, importanceplot
  • R
    R 3.1.0 released · 2014-04-10
  • 3.2
    record
    2013-08-16 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • 3.1
    record
    2012-07-05 · diff ↗ ·
    added 1 export
    pattern:bagging, bagging.cv, boosting, boosting.cv, errorevol, margins
  • R
    R 2.15.0 released · 2012-03-30
  • 3.0
    record
    2011-12-22 · diff ↗
  • R
    R 2.14.0 released · 2011-10-31
  • 2.1
    record
    2011-10-23 · diff ↗
  • 2.0
    record
    2011-07-23 · diff ↗
  • R
    R 2.13.0 released · 2011-04-13
  • R
    R 2.12.0 released · 2010-10-15
  • R
    R 2.11.0 released · 2010-04-22
  • R
    R 2.10.0 released · 2009-10-26
  • R
    R 2.9.0 released · 2009-04-17
  • R
    R 2.8.0 released · 2008-10-20
  • R
    R 2.7.0 released · 2008-04-22
  • 1.1
    record
    2007-10-25 · diff ↗
  • R
    R 2.6.0 released · 2007-10-03
  • R
    R 2.5.0 released · 2007-04-24
  • R
    R 2.4.0 released · 2006-10-03
  • 1.0
    record
    2006-06-06
  • R
    R 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.

APA

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

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.

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