showVmGlgExamples: Display insurance contract calculation example

View source: R/showVmGlgExamples.R

showVmGlgExamplesR Documentation

Display insurance contract calculation example

Description

Display the values of the example calculation of the given insurance contract as required by the Austrian regulation (LV-VMGLV, "LV Versicherungsmathematische Grundlagen Verordnung").

Usage

showVmGlgExamples(contract, prf = 10, t = 10, t_prf = 12, file = "", ...)

Arguments

contract

The insurance contract to calculate and show

prf

Time of premium waiver (premium-free)

t

Time for which to show all values (except premium-free values)

t_prf

Time for which to show all values after the premium waiver

file

If given, outputs all information to the file rather than the console

...

Further parameters for generating the contract for a tariff object

Examples

library(MortalityTables)
mortalityTables.load("Austria_Annuities_AVOe2005R")
# A trivial deferred annuity tariff with no costs:
tariff = InsuranceTarif$new(name="Test Annuity", type="annuity",
    mortalityTable = AVOe2005R.unisex, i=0.01)
contract = InsuranceContract$new(
    tariff,
    age = 35, YOB = 1981,
    policyPeriod = 30, premiumPeriod = 15, deferralPeriod = 15,
    sumInsured = 1000,
    contractClosing = as.Date("2016-10-01")
);
showVmGlgExamples(contract)

# Optionally output to a file rather than the console:
## Not run: 
showVmGlgExamples(contract, file = "annuity-example.txt")

## End(Not run)

kainhofer/r-life-insurance-contracts documentation built on Sept. 18, 2022, 7:56 p.m.