Interpretable Boosted Linear Models

Implements Interpretable Boosted Linear Models (IBLMs). These combine a conventional generalized linear model (GLM) with a machine learning component, such as XGBoost. The package also provides tools within for explaining and analyzing these models. For more details see Gawlowski and Wang (2025) < https://ifoa-adswp.github.io/IBLM/reference/figures/iblm_paper.pdf>.


IBLM

Interpretable Boosted Linear Models

CRAN status R-CMD-check CRAN downloads


Overview

IBLM implements Interpretable Boosted Linear Models — a hybrid modelling approach that combines the transparency of generalized linear models (GLMs) with the predictive power of gradient boosting.

The package provides:

  • Functions for fitting interpretable boosted linear models
  • Tools to analyze and visualize model results
  • Support for model comparison and diagnostics

Installation

You can install the released version of IBLM from CRAN:

install.packages("IBLM")

You can install the development version from GitHub:

# install.packages("remotes")
remotes::install_github("IFoA-ADSWP/IBLM")

Example

Here’s a minimal example to train and explain an IBLM:

library(IBLM)

df_list <- freMTPLmini  |>
  split_into_train_validate_test()

iblm_model <- train_iblm_xgb(
  df_list,
  response_var = "ClaimRate",
  family = "poisson"
)

ex <- explain_iblm(iblm_model, df_list$test)



Documentation

For Documentation on the various functions in this package visit:

🔗 https://ifoa-adswp.github.io/IBLM/


Contributing

Contributions are welcome!
If you’d like to report a bug or suggest a feature, please open an issue on GitHub:

🔗 https://github.com/IFoA-ADSWP/IBLM/issues


Citation

If you use IBLM in research or teaching, please cite it as:

Gawlowski, K. and Beard, P. (2025). IBLM: Interpretable Boosted Linear Models. R package version 1.0.1.


License

This package is licensed under the MIT License.
See the LICENSE file for full details.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("IBLM")

1.0.2 by Karol Gawlowski, 10 months ago


https://ifoa-adswp.github.io/IBLM/, https://github.com/IFoA-ADSWP/IBLM


Report a bug at https://github.com/IFoA-ADSWP/IBLM/issues


Browse source code at https://github.com/cran/IBLM


Authors: Karol Gawlowski [aut, cre, cph] , Paul Beard [aut]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports cli, dplyr, fastDummies, ggExtra, ggplot2, purrr, scales, statmod, stats, utils, withr, xgboost

Suggests knitr, rmarkdown, testthat, gt, patchwork


See at CRAN