Package: baggingReserve 0.2.0

Jan Janoušek

baggingReserve: Bagging and Regression Trees for Individual Claims Reserving

Claim-level (individual) loss reserving in non-life insurance, and the means to check claim-level reserves against the payments that followed. A data contract turns a table of claims and a table of payment transactions into a claim-by-development-year panel at a valuation date; a recursion engine completes the payment history of every reported claim one development year ahead, with plugged-in means or simulated payments, for regression trees, their bootstrap aggregation (bagging) and user-supplied learners; payments for incurred-but-not-reported claims are added from chain-ladder claim counts and the average predicted payment per development year; and back-tests score a prediction and a reference method such as the chain ladder against realised payments by calendar year and component. The default estimator is the method of Janoušek and Pešta (2025) <doi:10.1007/s00362-025-01715-9>, one regression tree per development year with bagging for replicate predictions, whose spread describes the bootstrap resampling variation of the predictions of (by default unpruned) trees, and an out-of-bag diagnostic of the one-year regressions; for totals beyond next year simulated instead of plugged-in completion is recommended. Ships a reproducible synthetic individual-claims dataset generated with the individual claims simulator of Wang and Wüthrich, built on 'SynthETIC'.

Authors:Jan Janoušek [aut, cre], Michal Pešta [aut]

baggingReserve_0.2.0.tar.gz
baggingReserve_0.2.0.zip(r-4.7-any)baggingReserve_0.2.0.zip(r-4.6-any)baggingReserve_0.2.0.zip(r-4.5-any)
baggingReserve_0.2.0.tgz(r-4.6-any)baggingReserve_0.2.0.tgz(r-4.5-any)
baggingReserve_0.2.0.tar.gz(r-4.7-any)baggingReserve_0.2.0.tar.gz(r-4.6-any)
baggingReserve_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
baggingReserve/json (API)

# Install 'baggingReserve' in R:
install.packages('baggingReserve', repos = c('https://heirofisildur.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/heirofisildur/baggingreserve/issues

Datasets:

On CRAN:

Conda:

actuarial-sciencebaggingclaims-reservingibnrinsuranceregression-trees

4.30 score 2 scripts 13 exports 2 dependencies

Last updated from:a857165fa3. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK169
source / vignettesOK204
linux-releaseOK190
macos-releaseOK212
macos-oldrelOK225
windows-develOK260
windows-releaseOK245
windows-oldrelOK192
wasm-releaseOK125

Exports:as_trianglebacktestbag_reservecalendar_year_paymentschain_ladderchain_ladder_calendarclaim_countsclaim_reservesclaims_panelibnr_reserveoob_scorereserve_treetwo_part_learner

Dependencies:codetoolsrpart

baggingReserve: Bagging and Regression Trees for Individual Claims Reserving in R (JSS manuscript)
Introduction | Reserving with regression trees and bagging | Package design | Illustration | Summary and discussion

Last update: 2026-10-25
Started: 2026-10-25

Claim-level reserving and back-testing: a short tour

Last update: 2026-10-25
Started: 2026-10-15

Readme and manuals

Help Manual

Help pageTopics
Run-off triangles of a claims panel or a reserve predictionas_triangle as_triangle.chain_ladder as_triangle.claims_panel as_triangle.reserve_prediction claim_counts print.reserve_triangle
Data frames of predictions and back-testsas.data.frame.reserve_backtest as.data.frame.reserve_prediction
Back-test a reserve prediction against realised paymentsbacktest
Fit bootstrap regression trees and complete reserve replicatesbag_reserve summary.bag_reserve
Payments by future calendar yearcalendar_year_payments calendar_year_payments.default calendar_year_payments.reserve_prediction
Future payments of a chain-ladder projection by calendar yearcalendar_year_payments.chain_ladder
Chain-ladder projection of a run-off trianglechain_ladder
Reserves of the individual reported claimsclaim_reserves
Build a claim-by-development panel from individual claims and paymentsas.data.frame.claims_panel claims_panel summary.claims_panel
Payments of the claims incurred but not reportedibnr_reserve
Out-of-bag diagnostics of a bagged fitoob_score
Plot the out-of-bag scores of a bagged fitplot.bag_reserve
Plot a reserve predictionplot.reserve_prediction
Plot the tree of one development year of a fitplot.reserve_tree
Predictions of a bagged fitpredict.bag_reserve
Predicted future payments of the reported claimspredict.reserve_tree reserve_prediction
Fit one regression tree per development yearreserve_tree summary.reserve_tree
Summarise a reserve prediction over its replicatessummary.reserve_prediction
Synthetic individual claims observed at the reserving datesynthetic_claims
Synthetic individual claims: the generated truthsynthetic_claims_full
Synthetic claim payments observed at the reserving datesynthetic_payments
Synthetic claim payments: the generated truthsynthetic_payments_full
A two-part learner: whether a claim pays, and how muchtwo_part_learner