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
3265bb35
Commit
3265bb35
authored
4 years ago
by
Reinhold Kainhofer
Browse files
Options
Downloads
Patches
Plain Diff
Fix typos and links in doc strings
parent
cb877355
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
R/InsuranceTarif.R
+2
-2
2 additions, 2 deletions
R/InsuranceTarif.R
R/ProfitParticipation.R
+6
-6
6 additions, 6 deletions
R/ProfitParticipation.R
man/InsuranceTarif.Rd
+2
-2
2 additions, 2 deletions
man/InsuranceTarif.Rd
man/ProfitParticipation.Rd
+6
-6
6 additions, 6 deletions
man/ProfitParticipation.Rd
with
16 additions
and
16 deletions
R/InsuranceTarif.R
+
2
−
2
View file @
3265bb35
...
...
@@ -197,7 +197,7 @@ InsuranceTarif = R6Class(
#' or mortality table for comparison. There is no need to re-implement a
#' tariff for such comparisons, as long as only parameters are changed.
#'
#' @param ... Parameters for the [InsuranceContract.Parameter
s
tructure],
#' @param ... Parameters for the [InsuranceContract.Parameter
S
tructure],
#' defining the characteristics of the tariff.
#' @import MortalityTables
#' @examples
...
...
@@ -236,7 +236,7 @@ InsuranceTarif = R6Class(
#'
#' @param tariffType An enum specifying the main characteristics of the tarif.
#' See [tariffType]
#' @param ... Parameters for the [InsuranceContract.Parameter
s
Structure],
#' @param ... Parameters for the [InsuranceContract.ParameterStructure],
#' defining the characteristics of the tariff.
#' @import MortalityTables
#' @examples
...
...
This diff is collapsed.
Click to expand it.
R/ProfitParticipation.R
+
6
−
6
View file @
3265bb35
...
...
@@ -154,7 +154,7 @@ ProfitParticipation = R6Class(
},
#' @description Store all passed parameters in the [Parameters] field
#' @description Store all passed parameters in the [
ProfitParticipation$
Parameters] field
#' @param ... any of the named fields defined in
#' [InsuranceContract.ParameterStructure$ProfitParticipation]. All other
#' arguments will be ignored
...
...
@@ -162,8 +162,8 @@ ProfitParticipation = R6Class(
self
$
Parameters
=
fillFields
(
self
$
Parameters
,
list
(
...
));
},
#' @description Store all passed functions in the [Functions] field
#' @param ... any of the functions defined in the [Functions] field. All other
#' @description Store all passed functions in the [
ProfitParticipation$
Functions] field
#' @param ... any of the functions defined in the [
ProfitParticipation$
Functions] field. All other
#' arguments will be ignored
setFunctions
=
function
(
...
)
{
self
$
Functions
=
fillFields
(
self
$
Functions
,
list
(
...
));
...
...
@@ -187,7 +187,7 @@ ProfitParticipation = R6Class(
#' to the values passed to this method.
#'
#' @param name The new name for the cloned [ProfitParticipation] object
#' @param ... Parameters for the [InsuranceContract.Parameter
s
Structure],
#' @param ... Parameters for the [InsuranceContract.ParameterStructure],
#' defining the characteristics of the tariff.
createModification
=
function
(
name
=
NULL
,
...
)
{
cloned
=
self
$
clone
();
...
...
@@ -252,7 +252,7 @@ ProfitParticipation = R6Class(
#' @description Set up the data.frame containing the profit participation rates
#' @param ... additional parameters passed to the profit calculation functions
#' stored in the [Functions] field.
#' stored in the [
ProfitParticipation$
Functions] field.
setupRates
=
function
(
params
,
values
,
...
)
{
# 1) Profit scheme or contract provides general company-wide profit rates for some years:
# profitRates
...
...
@@ -364,7 +364,7 @@ ProfitParticipation = R6Class(
#' @param profitScenario profit participation values from a previous calculation
#' (NULL if profit calculation is to be calculated from the contract inception).
#' Values before \code{calculateFrom} will be used from this data.frame.
#' @param ... additional parameters to be passed to [setupRates]
#' @param ... additional parameters to be passed to [
ProfitParticipation$
setupRates
()
]
getProfitParticipation
=
function
(
calculateFrom
=
0
,
profitScenario
=
NULL
,
params
,
values
,
...
)
{
waiting
=
valueOrFunction
(
params
$
ProfitParticipation
$
waitingPeriod
,
params
=
params
,
values
=
values
);
if
(
is.numeric
(
waiting
)
&&
waiting
>
0
)
{
...
...
This diff is collapsed.
Click to expand it.
man/InsuranceTarif.Rd
+
2
−
2
View file @
3265bb35
...
...
@@ -195,7 +195,7 @@ Initialize a new tariff object
\item{\code{desc}}{A short human-readable description. See \link{InsuranceTarif$desc}}
\item{\code{...}}{Parameters for the \link{InsuranceContract.Parameter
s
tructure},
\item{\code{...}}{Parameters for the \link{InsuranceContract.Parameter
S
tructure},
defining the characteristics of the tariff.}
}
\if{html}{\out{</div>}}
...
...
@@ -269,7 +269,7 @@ create a copy of a tariff with certain parameters changed
\item{\code{tariffType}}{An enum specifying the main characteristics of the tarif.
See \link{tariffType}}
\item{\code{...}}{Parameters for the \link{InsuranceContract.Parameter
s
Structure},
\item{\code{...}}{Parameters for the \link{InsuranceContract.ParameterStructure},
defining the characteristics of the tariff.}
}
\if{html}{\out{</div>}}
...
...
This diff is collapsed.
Click to expand it.
man/ProfitParticipation.Rd
+
6
−
6
View file @
3265bb35
...
...
@@ -133,7 +133,7 @@ Create a new profit participation scheme
\if{html}{\out{<a id="method-setParameters"></a>}}
\if{latex}{\out{\hypertarget{method-setParameters}{}}}
\subsection{Method \code{setParameters()}}{
Store all passed parameters in the \link{Parameters} field
Store all passed parameters in the \link{
ProfitParticipation$
Parameters} field
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{ProfitParticipation$setParameters(...)}\if{html}{\out{</div>}}
}
...
...
@@ -152,7 +152,7 @@ arguments will be ignored}
\if{html}{\out{<a id="method-setFunctions"></a>}}
\if{latex}{\out{\hypertarget{method-setFunctions}{}}}
\subsection{Method \code{setFunctions()}}{
Store all passed functions in the \link{Functions} field
Store all passed functions in the \link{
ProfitParticipation$
Functions} field
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{ProfitParticipation$setFunctions(...)}\if{html}{\out{</div>}}
}
...
...
@@ -160,7 +160,7 @@ Store all passed functions in the \link{Functions} field
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{...}}{any of the functions defined in the \link{Functions} field. All other
\item{\code{...}}{any of the functions defined in the \link{
ProfitParticipation$
Functions} field. All other
arguments will be ignored}
}
\if{html}{\out{</div>}}
...
...
@@ -190,7 +190,7 @@ create a copy of a profit scheme with certain parameters changed
\describe{
\item{\code{name}}{The new name for the cloned \link{ProfitParticipation} object}
\item{\code{...}}{Parameters for the \link{InsuranceContract.Parameter
s
Structure},
\item{\code{...}}{Parameters for the \link{InsuranceContract.ParameterStructure},
defining the characteristics of the tariff.}
}
\if{html}{\out{</div>}}
...
...
@@ -280,7 +280,7 @@ scheme and the contract)}
insurance contract, including cash flows, premiums, reserves etc.).}
\item{\code{...}}{additional parameters passed to the profit calculation functions
stored in the \link{Functions} field.}
stored in the \link{
ProfitParticipation$
Functions} field.}
}
\if{html}{\out{</div>}}
}
...
...
@@ -345,7 +345,7 @@ scheme and the contract)}
\item{\code{values}}{Contract values calculated so far (guaranteed component of the
insurance contract, including cash flows, premiums, reserves etc.).}
\item{\code{...}}{additional parameters to be passed to \
link{
setupRates}}
\item{\code{...}}{additional parameters to be passed to \
code{\link[=ProfitParticipation$setupRates]{ProfitParticipation$
setupRates
()}
}}
}
\if{html}{\out{</div>}}
}
...
...
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