knitr::opts_chunk$set(echo = TRUE)

expstudies


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.

Installation

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')

expstudies Example

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".



ActuarialAnalyst/expstudies documentation built on Aug. 4, 2022, 6:14 p.m.