Longevity and mortality dynamics with R

June 4, 2012

Following the previous post on life contingencies and actuarial models in life insurance, I upload additional material for the short course at the 6th R/Rmetrics Meielisalp Workshop & Summer School on Computational Finance and Financial Engineering organized by ETH Zürich, https://www.rmetrics.org/. The second part of the talk (on Actuarial models with R) will be dedicated to longevity and mortality. A complete set of slides can be downloaded from the blog, but again, only some part will be presented.

As mentioned earlier, the codes are from a book on actuarial science in R, written with Christophe Dutang (so far in French) that should appear, some day… The code used in the slides above can be downloaded from here, and datasets are the following,

> DEATH <- read.table(
+ "http://freakonometrics.free.fr/Deces-France.txt",
+ header=TRUE)
> EXPO  <- read.table(
+ "http://freakonometrics.free.fr/Exposures-France.txt",
+ header=TRUE,skip=2)

For additional resources, I will use Rob Hyndman‘s package on demography, Heather Turner and David Firth’s package on generalized nonlinear models (e.g. the slides of the short course Heather gave in Rennes at the UseR! conference in 2009), as well as functions developed by JPMorgan’s LifeMetrics (functions are  fully documented in the LifeMetrics Technical Document). All those functions can be obtained using

> library(demography)
> library(gnm)
> source("http://freakonometrics.free.fr/fitModels.R")

Print This Post Print This Post

Tags: , , ,

Posted in: Actuarial science, Computer, Statistics, Demography, Actuarial science, Life Contingencies

3 Responses to “ Longevity and mortality dynamics with R ”

  1. Kulsum on 21/02/2014 at 12:25 PM

    it is possible to get the values of the parameters? And if it’s possible, how to do it?

  2. Arthur Charpentier on 12/01/2013 at 9:51 AM

    that’s fine ! it’s always nice to get feedbacks. Nevertheless, it is still possible that some lines of the code are missing. Please let me know. Those were two posts from my previous blog, and since the migration is not complete yet, other posts related to longevity modeling might be missing..

  3. Matt on 12/01/2013 at 9:29 AM

    Of course, it would have been helpful if I had read all your slides before posting my previous question. Apologies …

Leave a Reply



Keep calm…

Keep calm…

Research blogs