
Pure IBNR exposure from a LogNormal reporting delay distribution
Source:R/severity_lognormal.R
PureIBNRLNorm.RdGives the unearned and pure IBNR exposure of each policy period at a valuation date, from a LogNormal reporting delay, as needed to reserve for claims that have occurred but have not yet been reported.
Usage
PureIBNRLNorm(IncDate, ExpDate, ValDate, mu, sigma)
pure_ibnr_lnorm(IncDate, ExpDate, ValDate, mu, sigma)Arguments
- IncDate
A
DateorPOSIXctvector - the inception dates of the periods. Numbers and character strings are not accepted; convert them withas.Date()first.- ExpDate
A
DateorPOSIXctvector - the expiry dates of the periods. Must not be before the inception dates.- ValDate
A
DateorPOSIXctdate - the valuation date.- mu
A real number - the first parameter of the reporting delay's LogNormal distribution, with the delay measured in days.
- sigma
A positive real number - the second parameter of the reporting delay's LogNormal distribution.
Value
A data frame with the unearned and pure IBNR exposure of each period in days (UnearnedDuration, and PureIBNRDuration rounded to 2 decimals) and as proportions between 0 and 1 of the period's duration (UnearnedDurationRatio and PureIBNRDurationRatio, rounded to 5 decimals), where the reporting delay has a LogNormal distribution with parameters mu and sigma. The ratios are computed before the durations are rounded. A period of zero length (ExpDate equal to IncDate) gives ratios of 0. The dates and parameters are recycled to a common length, one row each; lengths that do not recycle are an error.
Details
Durations are counted in days on each date's own calendar and clock: a POSIXct time of day counts as a fraction of a day, and daylight saving changes do not add fractions of a day, so Date and POSIXct dates (or a mix of them) give the same results.
See also
Other pure IBNR functions:
PureIBNRGamma()
Examples
Dates = data.frame(
inceptionDate = c("01/01/2006", "01/07/2006", "01/01/2007")
,expiryDate = c("31/12/2006", "30/06/2007", "31/12/2007")
)
Dates$inceptionDate<-as.POSIXct(Dates$inceptionDate, format="%d/%m/%Y")
Dates$expiryDate<-as.POSIXct(Dates$expiryDate, format="%d/%m/%Y")
ValuationDate<-as.POSIXct("30/10/2007", format="%d/%m/%Y")
PureIBNRLNorm(Dates$inceptionDate,Dates$expiryDate,ValuationDate,4,1.5)
#> UnearnedDuration PureIBNRDuration UnearnedDurationRatio PureIBNRDurationRatio
#> 1 0 28.12 0.00000 0.07726
#> 2 0 52.18 0.00000 0.14336
#> 3 62 98.84 0.17033 0.27155