to_SynthETIC | R Documentation |
Converts a vector of simulated quantities (e.g. claim occurrence times, claim
sizes) to a list format consistent with what is used for SynthETIC
simulation; to be used when user wishes to replace one or more of the
SynthETIC
modules with their own.
to_SynthETIC(x, frequency_vector, level = c("clm", "pmt"), no_payments_list)
x |
a vector of simulated quantities for all the claims. |
frequency_vector |
a vector of claim frequencies for all the periods. |
level |
level of the data provided; one of |
no_payments_list |
list of number of partial payments; only required
if |
It is assumed that the simulated quantities in x
is provided in
chronological order, e.g. if there are 30 claims in period 1 and x
is
on a "clm"
level, then the first 30 elements of x
should give the
measures for those 30 claims. Likewise, if x
is on a "pmt"
level, and
the first claim in period 1 has 5 payments, then the first 5 elements of x
should give the measures for those 5 payments.
A list of quantities such that the i
th component of the
list gives the corresponding measure for all claims that occurred in period
i
.
freq <- claim_frequency()
my_claims <- rweibull(sum(freq), shape = 4, scale = 100000)
claim_sizes <- to_SynthETIC(my_claims, freq)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.