Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
R
R - Life Insurance Contracts
Commits
592e91ef
Commit
592e91ef
authored
Jan 03, 2021
by
Reinhold Kainhofer
Browse files
Add function isRegularPremiumContract
parent
b6a4fdec
Changes
4
Hide whitespace changes
Inline
Side-by-side
NAMESPACE
View file @
592e91ef
...
...
@@ -64,6 +64,8 @@ export(fillNAgaps)
export(filterProfitRates)
export(head0)
export(initializeCosts)
export(isRegularPremiumContract)
export(isSinglePremiumContract)
export(makeContractGridDimname)
export(makeContractGridDimnames)
export(pad0)
...
...
R/HelperFunctions.R
View file @
592e91ef
...
...
@@ -103,10 +103,7 @@ ProfitComponentsEnum = objectProperties::setMultipleEnum("ProfitComponents",
#' Determine whether a contract (given all parameters) is a single-premium contract or with regular premiums
#'
#' The death benefit will be the full sumInsured for the first year after the
#' deferral period and then decrease linearly to 0 at the end of the policyPeriod.
#' This can be used with the \code{deathBenefit} parameter for insurance
#' contracts, but should not be called directly.
#' Single premium contracts are identified by the parameter \code{premiumPeriod = 1}.
#'
#' @param params The parameters of the contract.
#' @param values Unused by default (already calculated values of the contract)
...
...
@@ -115,6 +112,17 @@ ProfitComponentsEnum = objectProperties::setMultipleEnum("ProfitComponents",
isSinglePremiumContract
=
function
(
params
,
values
)
{
params
$
ContractData
$
premiumPeriod
<=
1
}
#' Determine whether a contract (given all parameters) is a contract with regular premiums
#'
#' Regular premium contracts are identified by the parameter \code{premiumPeriod > 1}.
#'
#' @param params The parameters of the contract.
#' @param values Unused by default (already calculated values of the contract)
#'
#' @export
isRegularPremiumContract
=
function
(
params
,
values
)
{
params
$
ContractData
$
premiumPeriod
>
1
}
#' Describes the death benefit of a linearly decreasing whole life insurance (after a possible deferall period)
#'
#' The death benefit will be the full sumInsured for the first year after the
...
...
man/isRegularPremiumContract.Rd
0 → 100644
View file @
592e91ef
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/HelperFunctions.R
\name{isRegularPremiumContract}
\alias{isRegularPremiumContract}
\title{Determine whether a contract (given all parameters) is a contract with regular premiums}
\usage{
isRegularPremiumContract(params, values)
}
\arguments{
\item{params}{The parameters of the contract.}
\item{values}{Unused by default (already calculated values of the contract)}
}
\description{
Regular premium contracts are identified by the parameter \code{premiumPeriod > 1}.
}
man/isSinglePremiumContract.Rd
View file @
592e91ef
...
...
@@ -12,8 +12,5 @@ isSinglePremiumContract(params, values)
\item{values}{Unused by default (already calculated values of the contract)}
}
\description{
The death benefit will be the full sumInsured for the first year after the
deferral period and then decrease linearly to 0 at the end of the policyPeriod.
This can be used with the \code{deathBenefit} parameter for insurance
contracts, but should not be called directly.
Single premium contracts are identified by the parameter \code{premiumPeriod = 1}.
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment