Returns a compound list structure such that the \(j\)th component
of the \(i\)th sub-list gives the payment pattern (as a vector) for the
\(j\)th claim of occurrence period \(i\).
The default rfun
is set up in three steps. First
we sample the complement of the proportion of total claim size
represented by the last two payments, from a Beta distribution with mean
$$1 - min(0.95, 0.75 + 0.04log[claim_size/(0.10 * ref_claim)])$$ where
ref_claim
is a package-wise global variable that we ask the user to define
at the top of their code using set_parameters
. CoV is assumed
constant at 20%.
Next we simulate the proportion of last_two_pmts paid in the second last
payment (settlement of the claim) from a Beta distribution with
mean = 0.90 and CoV = 3%.
Lastly we sample the remaining payment proportions from a Beta distribution
with mean $$(1 - last_two_payments)/(no_pmt - 2)$$ and CoV = 10%, which
is followed by a normalisation such that the proportions add up to 1.
In the cases where there are only 2 or 3 partial payments, proceed as if
there were 4 or 5 payments respectively with last_two_payments = 0. The
trivial case is when the claim is settled with a single payment, which must
be of the same amount as the total claim size.
Alternative sampling distributions are supported through rfun
(the random
generation function) and paramfun
(which returns the parameters of rfun
as a function of claim_size
). The paramfun
should return the distribution
parameters in a vector, e.g. for gamma distribution paramfun
should
return a value in the format of c(shape = , scale = )
. If a rfun
is
specified without a paramfun
, SynthETIC
will try to proceed without
parameterisation (i.e. directly calling rfun
with claim_size
), and if it
fails, then return an error message.