# raw - R Actuarial Workshops

This is a packge which stores data used in R workshops sponsored by the Casualty Actuarial Society1. This short vignette will describe the various data sets and give examples of their use. As well, there is a short note about each of the packages which we suggest be installed.

library(raw)

# Data

Once the raw package has been installed, any of the data sets may be accessed. To get a list of the data sets available in any package in R, one may call the data function with the name of the package as an argument.

data(package = "raw")

To get help about any data set, one may use R’s help facility to display the documentation for that data set.

?COTOR2

### COTOR

There are four sets in all. Note that the numbering begins at 2. So far as I am aware, the data for the first COTOR challenge is not available from the CAS website. Each data set has a set of randomly generated non-life insurance claims.

### PPA

This is data taken from Appendix A of the Basic Ratemaking study note by Werner and Modlin. This is a suite of data - six sets in all - pertaining to personal auto. More information may be found in the note itself.

data(PPA)
head(PPA_LossDevelopment)

### Huricane

This contains basic data

data("Hurricane")

### devtools

This package is likely not all that useful to beginners, but it does have one very useful function: install_github. This will allow you to intall the development version of packages from the GitHub codesharing site. For example, the command below will ensure that you’re always up to date with this package.

devtools::install_github("PirateGrunt/raw")

## Documentation

### knitr

The knitr package, written by Yihue Xie, enables a user to combine R code and documentation in a single file. That file may then be converted into a format like PDF, HTML or Word.

### rmarkdown

This package enhances knitr to make the document conversion described above a bit easier. This is an incredibly powerful framework. Read more here: https://rmarkdown.rstudio.com/.

## maps and maptools

As their names suggest, these packages support drawing maps.

1. The CAS has neither produced nor endorsed the content of this package.↩︎