-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.Rmd
52 lines (42 loc) · 1.4 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
title: "index"
output: html_document
---
```{r setup, include=FALSE}
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:
```{r eval = FALSE}
install.packages('expstudies')
```
The latest development version can be installed from github:
```{r eval = FALSE}
#install.packages("devtools")
devtools::install_github('ActuarialAnalyst/expstudies')
```
##expstudies Example
```{r include = FALSE}
library(pander)
```
```{r}
library(expstudies)
```
The expstudies package takes records with a start and end date -
```{r, results = FALSE}
records
```
```{r, results = "asis", echo = FALSE}
pander::pandoc.table(records)
```
and transforms them into policy intervals.
```{r, results = FALSE}
addExposures(records)
```
```{r, results = "asis", echo = FALSE}
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".