Learn R Programming

OpVaR (version 1.2)

dsevdist: Evaluating Plain, Spliced or Mixing Severity Distributions

Description

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

Usage

dsevdist(x, sevdist)

Arguments

x

sevdist

Examples

Run this code
# NOT RUN {
## 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))
  }
# }

Run the code above in your browser using DataLab