An underwriting cycle
underwriting_cycle.RdAn AR(2) on the log rate adequacy that scales each year's premium of a
dfa_projection(),
x_t - mean = phi1 (x_(t-1) - mean) + phi2 (x_(t-2) - mean) + sigma e_t,
from x_0 = x_(-1) = x0. mean() and variance() give x_t for whole
years t, stationary_variance() the long-run variance.
Value
An underwriting_cycle, with its parameters as properties and
period, the cycle's period in years (NA when it does not
oscillate).
Examples
cyc <- underwriting_cycle(0, 1.2, -0.6, 0.05, 0)
cyc@period
#> [1] 9.176295
variance(cyc, 1:3)
#> [1] 0.002500 0.006100 0.007864