claims_by_wait_time: claims_by_wait_time

Description Usage Arguments Details

View source: R/ClaimsByWaitTime.R

Description

Construct a data frame of claims simulated by time between events.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
claims_by_wait_time(
  tbl_policy,
  claim_frequency,
  payment_frequency,
  occurrence_wait,
  report_wait,
  pay_wait,
  pay_severity,
  pay_only_positive = TRUE
)

Arguments

tbl_policy

A data frame of policy records

claim_frequency

Number of claims per policy; can be a distribution.

payment_frequency

Number of payments per claim; can be a distribution.

occurrence_wait

Time until occurrence for each claim; can be a distribution

report_wait

Time until report; can be a distribution.

pay_wait

Lag time between payments; can be a distribution.

pay_severity

Severity of each claim payment; can be a distribution.

pay_only_positive

Boolean indicating whether to discard negative payments.

Details

This function will generate claim transactions.

Wait times and frequencies will be converted to integers with no message. If wait times or claim frequencies are less than zero, or payment frequencies are less than one, they will be converted with a message.


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