View source: R/showVmGlgExamples.R
showVmGlgExamples | R Documentation |
Display the values of the example calculation of the given insurance contract as required by the Austrian regulation (LV-VMGLV, "LV Versicherungsmathematische Grundlagen Verordnung").
showVmGlgExamples(contract, prf = 10, t = 10, t_prf = 12, file = "", ...)
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 |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.