knitr::opts_chunk$set(echo = TRUE)
There is an opportunity to build widely useful actuarial tools compatible with the mortality data format from VM-51 Appendix 4. The expstudies package provides a framework for working with policy data containing a unique policy key with start and end dates. Compute-intensive algorithms are implemented in Rcpp/C++ for high performance.
The latest stable version can be installed from CRAN:
install.packages('expstudies')
The latest development version can be installed from github:
#install.packages("devtools") devtools::install_github('ActuarialAnalyst/expstudies')
library(pander)
library(expstudies)
The expstudies package takes records with a start and end date -
records
pander::pandoc.table(records)
and transforms them into policy intervals.
addExposures(records)
pander::pandoc.table(head(addExposures(records), 4))
Much more is possible with the package. Read about premium pattern, exact calendar years, and other topics in the articles tab. I would start by reading the article on "Creating Exposure Intervals".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.