Skip to contents

Package overview

logmu logmu-package
Actuarial mortality experience analysis and modelling

Experience and valuation data

exp_data() val_data()
Create an exp_data or a val_data
is_exp_data() is_val_data()
Is x an exp_data or a val_data?
exp_start() exp_end()
Get experience period of exp_data
as_at()
Get the 'as at date' of a val_data
val_from_exp_data()
Create a val_data from an exp_data
`$<-`(<exp_data>) `$<-`(<val_data>)
Add or assign a data column

Mortality

is_mortality() end_age() log_mu() mortality()
Mortality-related functionality
mortality_const()
Create a constant mortality
mortality_table()
Create an mortality from a 2D age-period matrix of annual mortality rates

Pronouns .i and .t

pronoun_expressions()
Parse a pronoun expression into an AST
variable() static_variable() is_variable() is_static_variable() value()
Variables: scalar functions of an individual and time
indicator() is_indicator() logical_value()
Indicators: a 0/1 function of an individual
is_logmu_function()
Test for a logmu function object

Choosing which records to count

band() bands() age() ages() duration() durations() period() periods() include() is_include() period_included()
Includes: a single time interval per individual
includes() is_includes() group_names()
Includes: a collection of includes
category() categories()
Categories: breaking a population down by a categorical field

A/E analysis

aev()
Actual, expected and variance over experience data
create_aev() `[[`(<aev>) `$`(<aev>) `[`(<aev>)
Properties of an aev
is_aev()
Is an object an aev?
as.data.frame(<aev>)
Coerce an aev to a data frame

Charting an A/E

autoplot() plot(<aev>)
Chart an aev
theme_aev()
The chart theme, and how to resize a chart

Running several analyses at once

batch()
Run several analyses over one dataset in a single pass
settings() is_settings() print(<logmu_settings>)
Settings for an analysis

Vector operations