Skip to contents

A projection along economic scenarios (docs/design/esg-dfa.md): premium and expenses at the start of each year, the year's new losses scaled by the path's index and paid on a pattern, the opening reserves' run-off, investment income on cash and bond buckets, tax, dividends and injections. run_projection() runs it along an esg_scenarios (path s on scenario path s), or without an economy (no investment return and an index of 1) when scenarios is NULL.

Usage

dfa_projection(
  losses,
  opening_assets,
  premiums = NULL,
  expense_ratio = 0,
  opening_reserves = NULL,
  payout = NULL,
  bonds = NULL,
  index = "claims",
  cycle = NULL,
  cycle_seed = 0,
  tax_rate = NULL,
  carry_forward = TRUE,
  dividend_above = NULL,
  inject_below = NULL,
  capital_basis = "premium",
  dependence = NULL,
  dependence_parameter = 0,
  dependence_nu = NULL,
  dependence_seed = 0
)

run_projection(projection, scenarios = NULL)

Arguments

losses

The new losses in base money, a matrix with one row per path and one column per year.

opening_assets

The assets today.

premiums

The premium of each year; none when NULL.

expense_ratio

The expenses as a share of premium.

opening_reserves

The opening reserves' payments in base money, at the end of each year from the first, or NULL.

payout

The share of a year's losses paid at the end of that year and each later one; all in the year when NULL.

bonds

Bond buckets: a matrix or data frame with columns share and duration; the rest is cash.

index

The index that scales the losses: "claims" or "price".

cycle

An underwriting_cycle(), or NULL.

cycle_seed

The cycle's seed.

tax_rate

The tax rate, or NULL for no tax.

carry_forward

Carry a tax loss forward against later profits.

dividend_above, inject_below

Capital rule ratios of capital_basis, or NULL.

capital_basis

"premium" or "reserves".

dependence

The losses' rank dependence on the index growth: "gaussian", "t", or an Archimedean family ("clayton", "gumbel", "frank", "joe"); independent when NULL.

dependence_parameter

The copula's correlation or theta.

dependence_nu

The t copula's degrees of freedom.

dependence_seed

The dependence's seed.

projection

A dfa_projection.

scenarios

An esg_scenarios, or NULL.

Value

dfa_projection(): a dfa_projection. run_projection(): a projection_paths.

Examples

p <- dfa_projection(rbind(c(60, 70, 80), c(50, 120, 40)), 200,
                    premiums = rep(100, 3), expense_ratio = 0.3, payout = c(0.5, 0.5))
paths <- run_projection(p)
projection_values(paths, "result")[2, ]
#> [1]  20 -50  30