Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LifeInsureR package for R
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
R
LifeInsureR package for R
Commits
592e91ef
Commit
592e91ef
authored
4 years ago
by
Reinhold Kainhofer
Browse files
Options
Downloads
Patches
Plain Diff
Add function isRegularPremiumContract
parent
b6a4fdec
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
NAMESPACE
+2
-0
2 additions, 0 deletions
NAMESPACE
R/HelperFunctions.R
+12
-4
12 additions, 4 deletions
R/HelperFunctions.R
man/isRegularPremiumContract.Rd
+16
-0
16 additions, 0 deletions
man/isRegularPremiumContract.Rd
man/isSinglePremiumContract.Rd
+1
-4
1 addition, 4 deletions
man/isSinglePremiumContract.Rd
with
31 additions
and
8 deletions
NAMESPACE
+
2
−
0
View file @
592e91ef
...
@@ -64,6 +64,8 @@ export(fillNAgaps)
...
@@ -64,6 +64,8 @@ export(fillNAgaps)
export(filterProfitRates)
export(filterProfitRates)
export(head0)
export(head0)
export(initializeCosts)
export(initializeCosts)
export(isRegularPremiumContract)
export(isSinglePremiumContract)
export(makeContractGridDimname)
export(makeContractGridDimname)
export(makeContractGridDimnames)
export(makeContractGridDimnames)
export(pad0)
export(pad0)
...
...
This diff is collapsed.
Click to expand it.
R/HelperFunctions.R
+
12
−
4
View file @
592e91ef
...
@@ -103,10 +103,7 @@ ProfitComponentsEnum = objectProperties::setMultipleEnum("ProfitComponents",
...
@@ -103,10 +103,7 @@ ProfitComponentsEnum = objectProperties::setMultipleEnum("ProfitComponents",
#' Determine whether a contract (given all parameters) is a single-premium contract or with regular premiums
#' 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
#' Single premium contracts are identified by the parameter \code{premiumPeriod = 1}.
#' 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.
#'
#'
#' @param params The parameters of the contract.
#' @param params The parameters of the contract.
#' @param values Unused by default (already calculated values of the contract)
#' @param values Unused by default (already calculated values of the contract)
...
@@ -115,6 +112,17 @@ ProfitComponentsEnum = objectProperties::setMultipleEnum("ProfitComponents",
...
@@ -115,6 +112,17 @@ ProfitComponentsEnum = objectProperties::setMultipleEnum("ProfitComponents",
isSinglePremiumContract
=
function
(
params
,
values
)
{
params
$
ContractData
$
premiumPeriod
<=
1
}
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)
#' 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
#' The death benefit will be the full sumInsured for the first year after the
...
...
This diff is collapsed.
Click to expand it.
man/isRegularPremiumContract.Rd
0 → 100644
+
16
−
0
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}.
}
This diff is collapsed.
Click to expand it.
man/isSinglePremiumContract.Rd
+
1
−
4
View file @
592e91ef
...
@@ -12,8 +12,5 @@ isSinglePremiumContract(params, values)
...
@@ -12,8 +12,5 @@ isSinglePremiumContract(params, values)
\item{values}{Unused by default (already calculated values of the contract)}
\item{values}{Unused by default (already calculated values of the contract)}
}
}
\description{
\description{
The death benefit will be the full sumInsured for the first year after the
Single premium contracts are identified by the parameter \code{premiumPeriod = 1}.
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.
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment