actstatr is an R package bundling several learnr interactive tutorials for actuarial statistics. These tutorials consist of content along with interactive components for checking and reinforcing understanding. Tutorial topics include (tutorial name in parentheses):
- Basics of R (
"basicr"
): An introduction to the basic capabilities of theR
software. - Life Tables (
"lifetables"
): Implementation of life table computations using the packagelifecontingencies
. - Survival analysis (
"survival"
): Survival analysis inR
, including the Kaplan-Meier and Nelson-Aelen estimators, Cox regression models and accelerated failure time models. - Markov chains (
"markovchains"
): Application of continuous time Markov chains (MC) inR
by using the packagemarkovchain
. - Mortality graduation (
"graduation"
): Implementation inR
of mortality graduation techniques and of statistical tests to assess the adherence of a graduation. - Stochastic Mortality Models (
"stochasticmortality"
): Implementation inR
of stochastic mortaity projections models using the packageStMoMo
.
To install the latest development version:
install.packages("devtools")
devtools::install_github("rstudio/learnr")
devtools::install_github("amvillegas/actstatr")
To run a tutorial use the following code
learnr::run_tutorial("basicr", package = "actstatr")
where the first argument is the name of the tutorial. Available tutorials are: "basicr"
, "lifetables"
, "survival"
, "markovchains"
, "graduation"
, "stochasticmortality"
.