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
15982972
Commit
15982972
authored
5 years ago
by
Kainhofer Reinhold
Browse files
Options
Downloads
Patches
Plain Diff
Fix errors
parent
5d86b8d0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
R/InsuranceContract.R
+2
-1
2 additions, 1 deletion
R/InsuranceContract.R
R/InsuranceParameters.R
+1
-1
1 addition, 1 deletion
R/InsuranceParameters.R
with
3 additions
and
2 deletions
R/InsuranceContract.R
+
2
−
1
View file @
15982972
...
...
@@ -153,7 +153,8 @@ InsuranceContract = R6Class(
params
$
t
=
t
params
$
id
=
id
# Override with arguments explicitly given
params
[
names
(
args
)]
=
args
[
names
(
args
)]
arguments
=
list
(
...
)
params
[
names
(
arguments
)]
=
arguments
[
names
(
arguments
)]
params
$
comment
=
sprintf
(
"Dynamic increase at time %d to sum %d"
,
t
,
NewSumInsured
)
do.call
(
self
$
addBlock
,
params
)
},
...
...
This diff is collapsed.
Click to expand it.
R/InsuranceParameters.R
+
1
−
1
View file @
15982972
...
...
@@ -119,7 +119,7 @@ InsuranceContract.ParameterDefaults = list(
ActuarialBases
=
list
(
mortalityTable
=
NULL
,
invalidityTable
=
NULL
,
invalidityEndsContract
=
FALS
E
,
# Whether a claim for disease ends the contract or not
invalidityEndsContract
=
TRU
E
,
# Whether a claim for disease ends the contract or not
i
=
0.00
,
# guaranteed interest rate
balanceSheetDate
=
as.Date
(
"1900-12-31"
),
# Balance sheet date (for the calculation of the balance sheet reserves, year is irrelevant)
balanceSheetMethod
=
"30/360"
,
...
...
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