Learn R Programming

OpVaR (version 1.2)

qqplot.sevdist: Density plot and Q-Q plot for plain, mixing, and spliced distributions

Description

Given a dataset and a fitted sevdist object of type plain, mixing, or spliced, a density plot or qqplot is created to help determine the best distribution for modelling loss severity.

Usage

qqplot.sevdist(cell, sevdist, probabilities = NULL)

Arguments

sevdist

Fitted sevdist object

cell

List containing the data in the component cell$Loss

probabilities

Vector containing probabilities for desired quantiles. If no vector is given, default probabilities of 0.001, 0.002, ...., 0.99 will be used.

Value

Returns a density plot of the fitted sevdist object or a qqplot of the theoretical loss quantiles (sevdist object) vs. the experimental loss quantiles (loss data).

Examples

Run this code
# NOT RUN {
data(lossdat)
sev1 <- fitPlain(lossdat[[1]], "weibull")
plot(sev1)

sev2 <- fitSpliced(lossdat[[2]], "gamma", "gpd", method = "dAMSE")
qqplot.sevdist(lossdat[[2]], sev2)

# }

Run the code above in your browser using DataLab