data_generator {ReSurv} | R Documentation |
Individual data generator
Description
This function generates the monthly individual claims data in the accompanying methodological paper using the SynthETIC
package.
This simple function allows to simulate from a sand-box to test out the ReSurv
approach.
Some parameters of the simulation can be changed.
Usage
data_generator(
ref_claim = 2e+05,
time_unit = 1/360,
years = 4,
random_seed = 1964,
period_exposure = 200,
period_frequency = 0.2,
scenario = 1
)
Arguments
ref_claim |
|
time_unit |
|
years |
|
random_seed |
|
period_exposure |
|
period_frequency |
|
scenario |
|
Value
Individual claims data. It contains the following columns:
claim_number
: Policy ID.claim_type
: Type of claim. It can be either 0 or 1.AP
: Accident periodRP
: Reporting period.
References
Avanzi, B., Taylor, G., Wang, M., & Wong, B. (2021). SynthETIC: an individual insurance claim simulator with feature control. Insurance: Mathematics and Economics, 100, 296-308.
Hiabu, M., Hofman, E., & Pittarello, G. (2023). A machine learning approach based on survival analysis for IBNR frequencies in non-life reserving. arXiv preprint arXiv:2312.14549.
Examples
input_data_0 <- data_generator(
random_seed = 1964,
scenario = "alpha",
time_unit = 1,
years = 2,
period_exposure = 100)