claims_by_first_report: Claims by first report

Description Usage Arguments Details Value Examples

View source: R/ClaimsByFirstReport.R

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

1
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

1
2
3
4
5
6
7
8
# 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)

PirateGrunt/imaginator documentation built on Jan. 15, 2022, 12:39 a.m.