Package: ruin 0.1.1

Iegor Rudnytskyi

ruin: Simulation of Various Risk Processes

A (not yet exhaustive) collection of common models of risk processes in actuarial science, represented as formal S4 classes. Each class (risk model) has a simulator of its path, and a plotting function. Further, a Monte-Carlo estimator of a ruin probability for a finite time is implemented, using a parallel computation. Currently, the package extends two classical risk models Cramer-Lundberg and Sparre Andersen models by including capital injections, that are positive jumps (see Breuer L. and Badescu A.L. (2014) <doi:10.1080/03461238.2011.636969>). The intent of the package is to provide a user-friendly interface for ruin processes' simulators, as well as a solid and extensible structure for future extensions.

Authors:Iegor Rudnytskyi [aut, cre]

ruin_0.1.1.tar.gz
ruin_0.1.1.zip(r-4.5)ruin_0.1.1.zip(r-4.4)ruin_0.1.1.zip(r-4.3)
ruin_0.1.1.tgz(r-4.4-any)ruin_0.1.1.tgz(r-4.3-any)
ruin_0.1.1.tar.gz(r-4.5-noble)ruin_0.1.1.tar.gz(r-4.4-noble)
ruin_0.1.1.tgz(r-4.4-emscripten)ruin_0.1.1.tgz(r-4.3-emscripten)
ruin.pdf |ruin.html
ruin/json (API)
NEWS

# Install 'ruin' in R:
install.packages('ruin', repos = c('https://irudnyts.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/irudnyts/ruin/issues

On CRAN:

4.41 score 3 stars 17 scripts 162 downloads 7 exports 28 dependencies

Last updated 6 years agofrom:664117bc3d. Checks:OK: 5 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 13 2024
R-4.5-winNOTENov 13 2024
R-4.5-linuxNOTENov 13 2024
R-4.4-winOKNov 13 2024
R-4.4-macOKNov 13 2024
R-4.3-winOKNov 13 2024
R-4.3-macOKNov 13 2024

Exports:CramerLundbergCramerLundbergCapitalInjectionsplot_pathruin_probabilitysimulate_pathSparreAndersenSparreAndersenCapitalInjections

Dependencies:clicolorspacefansifarverggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigR6RColorBrewerrlangscalestibbleutf8vctrsviridisLitewithr

A Very Short Introduction to ruin

Rendered fromruin-intro.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2018-07-24
Started: 2018-07-23

Readme and manuals

Help Manual

Help pageTopics
Constructs an object of CramerLundberg S4 classCramerLundberg
A formal S4 class CramerLundbergCramerLundberg-class
Constructs an object of CramerLundbergCapitalInjections S4 classCramerLundbergCapitalInjections
A formal S4 class CramerLundbergCapitalInjectionsCramerLundbergCapitalInjections-class
A formal S4 class PathCramerLundbergPathCramerLundberg-class
A formal S4 class PathCramerLundbergCapitalInjectionsPathCramerLundbergCapitalInjections-class
A formal S4 class PathSparreAndersenPathSparreAndersen-class
A formal S4 class PathSparreAndersenCapitalInjectionsPathSparreAndersenCapitalInjections-class
Plot a path of the simulated ruin processplot_path
Estimate a ruin probability for a finite time horizonruin_probability
Generic for simulating a path of a given risk modelsimulate_path
Simulates a path of a Cramer-Lundberg modelsimulate_path,CramerLundberg-method
Simulates a path of a Cramer-Lundberg model's extension with capital injectionssimulate_path,CramerLundbergCapitalInjections-method
Simulates a path of a Sparre Andersen modelsimulate_path,SparreAndersen-method
Simulates a path of a Sparre Andersen model's extension with capital injectionssimulate_path,SparreAndersenCapitalInjections-method
Constructs an object of SparreAndersen S4 classSparreAndersen
A formal S4 class SparreAndersenSparreAndersen-class
Constructs an object of SparreAndersenCapitalInjections S4 classSparreAndersenCapitalInjections
A formal S4 class SparreAndersenCapitalInjectionsSparreAndersenCapitalInjections-class