Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
R - Mortality Tables
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
R - Mortality Tables
Commits
0c025862
Commit
0c025862
authored
9 years ago
by
Reinhold Kainhofer
Browse files
Options
Downloads
Patches
Plain Diff
Use only csv files for the Austrian Annuity tables, instead of xlsx
parent
43a07d08
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
data/ValuationTables_Austria_Annuities.R
+7
-12
7 additions, 12 deletions
data/ValuationTables_Austria_Annuities.R
with
7 additions
and
12 deletions
data/ValuationTables_Austria_Annuities.R
+
7
−
12
View file @
0c025862
...
...
@@ -5,7 +5,7 @@ stopifnot(require(methods), require(utils), require(ValuationTables)) # Valuatio
### RR67 Rententafel für Männer, 3%
###############################################################################
rr67.data
=
utils
::
read.csv
(
"
Tables/
Austria_Annuities_RR67.csv"
,
skip
=
2
)
rr67.data
=
utils
::
read.csv
(
"Austria_Annuities_RR67.csv"
,
skip
=
2
)
rr67
=
ValuationTables
::
valuationTable_period
(
name
=
"ÖVM 59/61 RR67"
,
ages
=
rr67.data
$
Alter
,
deathProbs
=
rr67.data
$
qx
...
...
@@ -17,8 +17,7 @@ rm(rr67.data);
### EROM/EROF 85 and G 1985 (period and age-shifted generation)
###############################################################################
# eromf.data = openxlsx::read.xlsx("Tables/AVOe_R.xlsx", sheet = "EROM-F Basistafeln", startRow = 3)
eromf.data
=
utils
::
read.csv
(
"Tables/Austria_Annuities_EROMF.csv"
,
skip
=
2
)
eromf.data
=
utils
::
read.csv
(
"Austria_Annuities_EROMF.csv"
,
skip
=
2
)
erom85.male
=
new
(
"valuationTable_period"
,
name
=
"EROM 85, male"
,
ages
=
eromf.data
$
Alter
,
deathProbs
=
eromf.data
$
EROM.85
...
...
@@ -40,8 +39,7 @@ EROF.G1950.female = new("valuationTable_period",
baseYear
=
1950
);
# eromf.data.av = openxlsx::read.xlsx("Tables/AVOe_R.xlsx", sheet = "EROM-F G AV", startRow = 3, rowNames = TRUE, colNames = TRUE)
eromf.data.av
=
utils
::
read.csv
(
"Tables/Austria_Annuities_EROMF_AV.csv"
,
skip
=
2
)
eromf.data.av
=
utils
::
read.csv
(
"Austria_Annuities_EROMF_AV.csv"
,
skip
=
2
)
EROM.G1950.male.av
=
valuationTable_ageShift
(
name
=
"EROM G 1950 mit Altersverschiebung, male"
,
...
...
@@ -65,9 +63,7 @@ rm(eromf.data, eromf.data.av)
# AVÖ 1996R exact (Male, Female), 1st-order only
###############################################################################
# AVOe1996R.exakt.data = openxlsx::read.xlsx("Tables/AVOe_R.xlsx",
# sheet = "AVOe 1996R exakt", startRow = 3, cols = c(1:6, 8:12));
AVOe1996R.exakt.data
=
utils
::
read.csv
(
"Tables/Austria_Annuities_AVOe1996R.csv"
,
skip
=
2
)
AVOe1996R.exakt.data
=
utils
::
read.csv
(
"Austria_Annuities_AVOe1996R.csv"
,
skip
=
2
)
AVOe1996R.trend.switching
=
function
(
year
)
{
if
(
year
<=
1971
)
{
...
...
@@ -125,8 +121,7 @@ rm(AVOe1996R.exakt.data)
# gender-specific tables also have 2nd-order tables, unisex only 1st-order table
###############################################################################
# AVOe2005R.exakt.data = openxlsx::read.xlsx("Tables/AVOe_R.xlsx", sheet = "AVOe 2005R", startRow = 3, cols = c(1:7, 9:14, 16:18));
AVOe2005R.exakt.data
=
utils
::
read.csv
(
"Tables/Austria_Annuities_AVOe2005R.csv"
,
skip
=
2
);
AVOe2005R.exakt.data
=
utils
::
read.csv
(
"Austria_Annuities_AVOe2005R.csv"
,
skip
=
2
);
AVOe2005R.trend.damping
=
function
(
t
)
{
100
*
atan
(
t
/
100
)
...
...
@@ -166,8 +161,8 @@ AVOe2005R.unisex.nodamping.group = undampenTrend(AVOe2005R.unisex.group);
#AVÖ 2005R with age-shifting (Male, Female, unisex), 1st-order only
###############################################################################
AVOe2005R.av.base
=
openx
ls
x
::
read.
xlsx
(
"Tables/AVOe_R.xlsx"
,
sheet
=
"
AVOe
2005R
AV
Basis
tafel"
,
startRow
=
3
,
rowNames
=
FALSE
);
AVOe2005R.av.verschiebung
=
openx
ls
x
::
read.
xlsx
(
"Tables/AVOe_R.xlsx"
,
sheet
=
"
AVOe
2005R
AV
Verschiebung"
,
startRow
=
3
,
rowNames
=
TRUE
);
AVOe2005R.av.base
=
uti
ls
::
read.
csv
(
"Austria_Annuities_
AVOe2005R
_
AVBasis
.csv"
,
skip
=
2
);
AVOe2005R.av.verschiebung
=
uti
ls
::
read.
csv
(
"Austria_Annuities_
AVOe2005R
_
AV
Shifts.csv"
,
skip
=
2
);
AVOe2005R_gen.av
=
function
(
nm
,
probs
,
shft
)
{
new
(
"valuationTable_ageShift"
,
...
...
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