showVmGlgExamples {LifeInsureR}R 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

Value

Name of the output file (invisible) or empty if printed to console

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:

showVmGlgExamples(contract, file =  tempfile("annuity-example", fileext = ".txt"))


[Package LifeInsureR version 1.0.0 Index]