Monthly patterns from a payment pattern
payment_pattern_monthly.Rdpayment_pattern_monthly() reads a payment_pattern() at the end of
each of months months, the share paid by (m + 1) / 12 years: at month
12 k - 1 (the 12 k-th value) it is the pattern's share at k years.
Between the pattern's times the share paid runs as interpolation says:
"step" (each share paid at its time, as the pattern discounts),
"linear" (evenly over the period ending at it, the usual assumption)
or "log_linear_unpaid" (the unpaid share falling geometrically). After the
last time all is paid, as the shares, any tail included, sum to 1.
Usage
payment_pattern_monthly(
pattern,
months,
interpolation = c("linear", "step", "log_linear_unpaid")
)
cashflow_patterns_from_annual(
written,
pattern,
policy_months = 12,
interpolation = c("linear", "step", "log_linear_unpaid"),
accident_period = NULL,
reading = c("weibull", "loglogistic", "ln-linear"),
written_timing = c("through_month", "at_start")
)Arguments
- pattern
A
payment_pattern(), by age from the accident date forcashflow_patterns_from_annual().- months
The number of months.
- interpolation
"linear","step"or"log_linear_unpaid".- written
The cumulative share written by the end of each month; its length is the patterns'.
- policy_months
The policy term in months.
- accident_period
NULL(the pattern runs from the accident date), or"year","quarter"or"month".- reading
How an accident-period pattern is read at monthly ages:
"weibull","loglogistic"or"ln-linear".- written_timing
When in its month a month's premium is written:
"through_month"(the default) or"at_start".
Value
payment_pattern_monthly() a numeric vector;
cashflow_patterns_from_annual() a list of written, earned and
paid.
Details
cashflow_patterns_from_annual() gives the monthly written, earned and
paid patterns of cashflow_terms() from a written pattern: the premium
written in month s is earned evenly over the policy_months months
from when it is written, through the month by default
(written_timing = "through_month": half the premium written evenly over
a year earned by its end, the parallelogram and the convention of
underwriting_basis()) or at its start ("at_start": a contract written
on its inception date, such as one catastrophe year with written all 1;
#839); losses occur as premium is earned, in the middle of their month,
and are paid by pattern measured from the accident date. With accident_period = "year" (or "quarter", "month") the pattern is an accident-period
pattern, such as a chain ladder's, measured from the start of each
accident period: the deal is then one underwriting period written as
written says over policies of policy_months, and its paid pattern is
the accident-period pattern converted to it (#722), as
underwriting_basis() and monthly_pattern_draws() convert, an annual
pattern read at monthly ages by reading; the pattern's times must be
whole months, and interpolation is not used.
Examples
p <- payment_pattern_from_development(c(1, 2, 3), c(4, 1.25, 1))
m <- payment_pattern_monthly(p, 36)
m[c(12, 24, 36)]
#> [1] 0.25 0.80 1.00
even <- payment_pattern(c(1, 2, 3), rep(1 / 3, 3))
pats <- cashflow_patterns_from_annual(rep(1, 60), even, written_timing = "at_start")
pats$earned[c(6, 12)]
#> [1] 0.5 1.0
terms <- cashflow_terms(100, 48, pats$written, pats$earned, pats$paid,
cashflow_requirement(c(outstanding = 1)))
round(cashflow_run(terms, 1.3)$funded, 6)
#> [1] 30