Learn R Programming

gbm

Overview

The gbm package, which stands for generalized boosted models, provides extensions to Freund and Schapire’s AdaBoost algorithm and Friedman’s gradient boosting machine. It includes regression methods for least squares, absolute loss, t-distribution loss, quantile regression, logistic, multinomial logistic, Poisson, Cox proportional hazards partial likelihood, AdaBoost exponential loss, Huberized hinge loss, and Learning to Rank measures (i.e., LambdaMart).

Documentation and vignettes are available at https://gbm-developers.github.io/gbm/.

Installation

# The easiest way to get gbm is to it install from CRAN:
install.packages("gbm")

# Alternatively, you can install the development version from GitHub:
if (!requireNamespace("remotes")) {
  install.packages("remotes")
}
remotes::install_github("gbm-developers/gbm")

Lifecycle

The gbm package is no longer under active development. We will only make the necessary changes to ensure that gbm remains on CRAN. For the most part, no new features will be added, and only the most critical of bugs will be fixed.

This is a maintained version of gbm back compatible to CRAN versions of gbm 2.1.x. It exists mainly for the purpose of reproducible research and data analyses performed with the 2.1.x versions of gbm. For newer development, and a more consistent API, try out the gbm3 package!

Copy Link

Version

Install

install.packages('gbm')

Monthly Downloads

40,514

Version

2.3.1

License

GPL (>= 2) | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Ridgeway Greg

Last Published

July 9th, 2026

Functions in gbm (2.3.1)

interact.gbm

Estimate the strength of interaction effects
plot.gbm

Marginal plots of fitted gbm objects
test.gbm

Test the gbm package.
guessDist

gbm internal functions
gbm.object

Generalized Boosted Regression Model Object
gbm.fit

Generalized Boosted Regression Modeling (GBM)
basehaz.gbm

Baseline hazard function
gbm

Generalized Boosted Regression Modeling (GBM)
calibrate.plot

Calibration plot
gbm-package

Generalized Boosted Regression Models (GBMs)
gbm.more

Generalized Boosted Regression Modeling (GBM)
pretty.gbm.tree

Print gbm tree components
relative.influence

Methods for estimating relative influence
quantile.rug

Quantile rug plot
summary.gbm

Summary of a gbm object
reconstructGBMdata

Reconstruct a GBM's Source Data
gbm.roc.area

Compute Information Retrieval measures.
gbm.perf

GBM performance
print.gbm

Print model summary
predict.gbm

Predict method for GBM Model Fits
gbmCrossVal

Cross-validate a gbm