getLDF {bootstrap}R Documentation

Description

Get the loss development factors, using the weighted average from a accumulated triangle.

Usage

getLDF(object, ...)

Arguments

object ~a triangle object
...

Examples


## The function is currently defined as
function(object, ...)  standardGeneric("getLDF")

setMethod("getLDF", signature("Triangle"), function(object){

                l<-getWeightedAvg(object)

                ldf<-c(l, 1.0)
                for (n in (length(ldf)-1) : 1){
                        ldf[n] <-ldf[n] * ldf[n+1]
                }
                return (ldf)
        }
)


[Package bootstrap version 1.0-1 Index]