dsevdist: Evaluating Plain, Spliced or Mixing Severity Distributions

Description Usage Arguments Author(s) Examples

View source: R/dsevdist.R

Description

Functions for evaluating pdf, cdf, quantile function and random number generation given a loss severity model (sevdist object)

Usage

1
dsevdist(x, sevdist)

Arguments

x
sevdist

Author(s)

Marius Pfeuffer

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x, sevdist) 
{
    if (sevdist$type == "plain") 
        return(sevdist$par[[1]](x))
    if (sevdist$type == "spliced") 
        return(dspliced(x, sevdist))
    if (sevdist$type == "mixing") 
        return(dmixing(x, sevdist))
  }

OpVaR documentation built on May 29, 2018, 9:04 a.m.