truncate_claims {reservr} | R Documentation |
Truncate claims data subject to reporting delay
Description
Truncate claims data subject to reporting delay
Usage
truncate_claims(data, accident, delay, time, .report_col = "report")
Arguments
data |
Full claims data including IBNR |
accident |
Accident times. May be an unquoted column name from |
delay |
Reporting delays. May be an unquoted column name from |
time |
Observation time (scalar number or one per claim).
Claims with |
.report_col |
|
Value
Truncated data
.
The reporting time is stored in a colnumn named by .report_col
unless
.report_col
is NULL
.
If both .report_col
is NULL
and time
contains only Inf
s,
a warning will be issued since data
will be
returned unchanged and no work will be done.
Examples
claims_full <- data.frame(
acc = runif(100),
repdel = rexp(100)
)
tau <- 2.0
truncate_claims(claims_full, acc, repdel, tau)
[Package reservr version 0.0.3 Index]