incremental: Transforms cumulative dollar value in a loss_df object into...

Description Usage Arguments Details Examples

Description

Transforms cumulative dollar value in a loss_df object into incremental

Usage

1
incremental(ldf, dollar, include_all = FALSE)

Arguments

ldf

object of class loss_df

dollar

column to transform from cumulative to incremental. Can be of any of the allowable 'dollar' types for class loss_df or any of the columns in the 'dollar' type for class loss_df.

include_all

logical. default = FALSE. Whether or not to calculate incremental losses for development years where data from prior development year is missing.

Details

incremental turns cumulative loss values into incemental amounts. Claims that are not reported until after the first development period after their origin are given an incremental payment in the first at the time they are first reported.

Examples

1
2
3
4
5
incremental(test_df, dollar = "paid")

# nexy two compare the effect of `include_all` argument
incremental(test_df_incomplete, dollar = "paid")
incremental(test_df_incomplete, dollar = "paid", include_all = TRUE)

merlinoa/lossdb documentation built on May 22, 2019, 6:52 p.m.