| claims_by_wait_time {imaginator} | R Documentation | 
claims_by_wait_time
Description
Construct a data frame of claims simulated by time between events.
Usage
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.
Value
A data frame, as follows:
- policy_effective_date
- Date 
- policy_expiration_date
- Date 
- exposure
- double 
- policyholder_id
- integer 
- claim_id
- integer 
- occurrence_date
- Date 
- report_date
- Date 
- number_of_payments
- integer 
- payment_date
- Date 
- payment_amount
- double