Learn R Programming

RcmdrPlugin.RiskDemo (version 3.2)

R Commander Plug-in for Risk Demonstration

Description

R Commander plug-in to demonstrate various actuarial and financial risks. It includes valuation of bonds and stocks, portfolio optimization, classical ruin theory, demography and epidemic.

Copy Link

Version

Install

install.packages('RcmdrPlugin.RiskDemo')

Monthly Downloads

516

Version

3.2

License

GPL-2

Maintainer

Arto Luoma

Last Published

February 6th, 2024

Functions in RcmdrPlugin.RiskDemo (3.2)

plotR

Plotting the effective reproduction number (R)
solveYield

Computing bond yields
solveLund

Solving Lund's exponent
drawPositiveRate

Plotting the positive rate of COVID-19 tests or the tests per case
bondCurve

Drawing forward and yield curves
drawBarsFin

Plotting epidemic statistics with Finnish data
popRegionsFin

Population data on Finnish hospital districts
bondFigure

Bond price as a function of interest rate.
drawFigure

Efficient frontier and return distribution figures
loglikCovid

Computing the log-likelihood of the covid model
dataCovidFin

Confirmed COVID-19 cases in Finland
fin.fcast

Finnish mortality forecast
drawRuin

Plotting simulations of a surplus process
drawBars

Plotting epidemic statistics
params

Yield curve parameter data
fin.lca

Lee-Carter model fit for Finnish data
stock.price

Computing stock prices
returns

Computing expected returns and their covariance matrix
portfOptim

Portfolio optimization for an index model
stockData

Stock data
RcmdrPlugin.RiskDemo-package

R Commander Plug-in for Risk Demonstration
computeRuinFinite

Ruin probability computation with finite time horizon
RcmdrPlugin.RiskDemo-internal

Internal RiskDemo objects
bondPrice

Computing bond prices
computeRuin

Ruin probability computation with infinite time horizon
covidSmooth

Kalman smoothing of the covid model
countries.mort

Mortality data
plotForecast

Forecasting new covid cases
dataCovid

COVID-19 statistics
drawIncidence

Plotting incidence curves of an epidemic
drawIncidenceFin

Plotting incidence curves of an epidemic with Finnish data
drawTests

Plotting time series related to COVID-19 testing
fin

Mortality data for Finland
pop.pred

Population forecasting