claims_by_first_report {imaginator} | R Documentation |
Claims by first report
Description
Given a data frame of policies, this will simulate the number of claims- and their initial payment- per policy by the development lag at which they are first reported.
Usage
claims_by_first_report(tbl_policy, frequency, payment_severity, lags)
Arguments
tbl_policy |
A policy data frame. |
frequency |
A list of the same length as 'lags' of number of claims per policy or their distributions. |
payment_severity |
A list of the same length as 'lags' of payment amount for each claim or their distributions. |
lags |
A vector of lags as integers. |
Details
Creates a data frame with randomly generated claim values.
Value
A claims data frame
Examples
# This will generate a claim data frame which has 1,000 records
# each of which has a severity of 100
tbl_policy <- policy_year_new(100, 2001)
tbl_claims <- claims_by_first_report(
tbl_policy,
frequency = 10,
payment_severity = 100,
lags = 1)
[Package imaginator version 1.0.0 Index]