clmplus

Age-period-cohort models for the claim development.

https://github.com/gpitt71/clmplus

Science Score: 49.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 5 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.5%) to scientific vocabulary

Keywords

age-period-cohort-models insurance non-life reserving
Last synced: 7 months ago · JSON representation

Repository

Age-period-cohort models for the claim development.

Basic Info
Statistics
  • Stars: 5
  • Watchers: 3
  • Forks: 0
  • Open Issues: 0
  • Releases: 3
Topics
age-period-cohort-models insurance non-life reserving
Created over 3 years ago · Last pushed 9 months ago
Metadata Files
Readme

README.md

R-CMD-check R-hub CRAN RStudio mirror downloads DOI

clmplus

clmplus is an R package for implementing the age-period-cohort models for the claim development presented in the manuscript 'Replicating and extending chain-ladder via an age-period-cohort structure on the claim development in a run-off triangle' doi:10.1080/10920277.2025.2496725.

Our models

The models for the claim development available in the clmplus are based on the models for human mortality implemented in the StMoMo package. Users can either rely on our default models or set their own configuration for the claim development.

| Model | Lexis dimension |Claims reserving | | :-------------: |:-------------------------------:|---------------------------------:| | a | age |development (chain-ladder model) | | ac | age-cohort |development-accident | | ap | age-period |development-calendar | | apc | age-period-cohort |development-calendar-accident |

Installation

The developer version of clmplus can be installed from GitHub.

``` library(devtools) devtools::install_github("gpitt71/clmplus")

`` The current version ofclmplus` can be installed from CRAN.

``` install.packages('clmplus')

```

Get Started

In this brief example, we work with the sifa.mtpl data from the clmplus package. Further examples can be found in the package vignettes. The data set of cumulative claim payments is transformed into an AggregateDataPP object that pre-processes the data for claim development modelling.

``` library(clmplus)

data ("sifa.mtpl") dataset = sifa.mtpl datapp = AggregateDataPP(cumulative.payments.triangle = dataset, eta= 1/2) ```

Our models can be fit with the clmplus function.

``` a.model.fit=clmplus(datapp, hazard.model = "a") # age-model replicates the chain ladder

ac.model.fit=clmplus(datapp, hazard.model = "ac")

ap.model.fit=clmplus(datapp, hazard.model = "ap")

apc.model.fit=clmplus(datapp, hazard.model = "apc")

```

The plot function can be be used to explore the scaled deviance residuals of fitted models. Below, an example for the age-period-cohort (apc) model for the claim development.

plot(apc.model.fit)

Predictions are performed with the predict function.

``` a.model=predict(a.model.fit)

clmplus reserve (age model)

sum(a.model$reserve)

226875.5

ac.model=predict(ac.model.fit, gk.fc.model = 'a', gk.order = c(1,1,0))

clmplus reserve (age-cohort model)

sum(ac.model$reserve)

205305.7

ap.model= predict(ap.model.fit, ckj.fc.model = 'a', ckj.order = c(0,1,0))

clmplus reserve (age-period model)

sum(ap.model$reserve)

215602.8

apc.model= predict(apc.model.fit, gk.fc.model = 'a', ckj.fc.model = 'a', gk.order = c(1,1,0), ckj.order = c(0,1,0))

clmplus reserve (age-period-cohort model)

sum(apc.model$reserve)

213821.6

```

The fitted effect (and extrapolated) effects can be inspected with the plot function. We continue below the example with the apc model.

plot(apc.model)

Citation

APA Style

Pittarello, G., Hiabu, M., & Villegas, A. M. (2025). Replicating and Extending Chain-Ladder via an Age–Period–Cohort Structure on the Claim Development in a Run-Off Triangle. North American Actuarial Journal, 1-31.

BibTeX
bibtex @article{ , title={Replicating and Extending Chain-Ladder via an Age--Period--Cohort Structure on the Claim Development in a Run-Off Triangle}, author={Pittarello, Gabriele and Hiabu, Munir and Villegas, Andr{\'e}s M}, journal={North American Actuarial Journal}, pages={1--31}, year={2025}, publisher={Taylor \& Francis} doi = {10.1080/10920277.2025.2496725}, }

Further Resources

The most recent tutorials and replication files associated with the manuscript can be accessed via our project website.

Owner

  • Name: Gabriele Pittarello
  • Login: gpitt71
  • Kind: user
  • Location: Copenhagen, Denmark

I am a Ph.D. student in actuarial science at the Sapienza, University of Rome. Also, I am currently a visiting Ph.D. student at the University of Copenhagen.

GitHub Events

Total
  • Push event: 10
  • Create event: 1
Last Year
  • Push event: 10
  • Create event: 1

Committers

Last synced: about 3 years ago

All Time
  • Total Commits: 26
  • Total Committers: 1
  • Avg Commits per committer: 26.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
gpitt71 9****1@u****m 26

Issues and Pull Requests

Last synced: 8 months ago

All Time
  • Total issues: 0
  • Total pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: 8 minutes
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • gpitt71 (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 327 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 4
  • Total maintainers: 1
cran.r-project.org: clmplus

Tool-Box of Chain Ladder Plus Models

  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 327 Last month
Rankings
Stargazers count: 28.5%
Forks count: 28.8%
Dependent packages count: 29.8%
Dependent repos count: 35.5%
Average: 37.4%
Downloads: 64.4%
Last synced: 8 months ago

Dependencies

DESCRIPTION cran
  • ChainLadder * imports
  • StMoMo * imports
  • forecast * imports
  • ggplot2 * imports
  • grid * imports
  • gridExtra * imports
  • reshape2 * imports
  • apc * suggests
  • dplyr * suggests
  • knitr * suggests
  • rmarkdown * suggests
  • tidyr * suggests
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.5.0 composite
  • actions/checkout v4 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/r-checkrelease.yml actions
  • actions/checkout v4 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/rhub.yaml actions
  • r-hub/actions/checkout v1 composite
  • r-hub/actions/platform-info v1 composite
  • r-hub/actions/run-check v1 composite
  • r-hub/actions/setup v1 composite
  • r-hub/actions/setup-deps v1 composite
  • r-hub/actions/setup-r v1 composite