View source: R/truncate_claims.R
truncate_claims | R Documentation |
Truncate claims data subject to reporting delay
truncate_claims(data, accident, delay, time, .report_col = "report")
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 |
|
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.
claims_full <- data.frame(
acc = runif(100),
repdel = rexp(100)
)
tau <- 2.0
truncate_claims(claims_full, acc, repdel, tau)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.