-
- Downloads
Implement sumInsured calculated from given premium
* Add parameter premium, which defines the prescribe premium (either written, written_beforetax or gross) * The sumInsured will be derived from the premium by reversing the formulas (as far as possible) * If both sumInsured and premium are given, the premium is ignored and sumInsured takes precedence * The function calculatePremiums now also returns the sumInsured (in addition to the premiums and the coefficients for the premium calculation) Implements #49, documents #63
Showing
- R/.gitignore 1 addition, 0 deletionsR/.gitignore
- R/InsuranceContract.R 1 addition, 0 deletionsR/InsuranceContract.R
- R/InsuranceParameters.R 3 additions, 1 deletionR/InsuranceParameters.R
- R/InsuranceTarif.R 102 additions, 4 deletionsR/InsuranceTarif.R
- tests/testthat/test-SumInsured-calculated.R 46 additions, 0 deletionstests/testthat/test-SumInsured-calculated.R
- vignettes/using-the-lifeinsurancecontracts-package.Rmd 98 additions, 0 deletionsvignettes/using-the-lifeinsurancecontracts-package.Rmd
Loading
Please register or sign in to comment