fitFreqdist: Fitting the frequency distribution

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Fitting the frequency distribution of operational losses

Usage

1
  fitFreqdist(cell, distr)

Arguments

cell

A data frame giving the losses (cell$Loss) and the user-defined period (cell$Period) in which the loss occured.

distr

The frequency distribution: either "pois" or "nbinom"

Details

First, the number of losses per period is counted. With the results a Poisson or Negative Binomial distribution is fitted for the number of losses per period using a Maximum Likelihood estimator.

Value

Returns a freqdist object with the given distribution fitted to the loss frequency.

Author(s)

Christina Zou

See Also

To build a freqdist object independently, use buildFreqdist.

Examples

1
2
3
  data(lossdat)
  fitFreqdist(lossdat[[1]],"pois")
  fitFreqdist(lossdat[[2]],"nbinom")

Example output

Call:
NULL

Frequency Distribution Object:
---
Distribution: [1] "pois"
Parameters: [1] 49.125
Call:
NULL

Frequency Distribution Object:
---
Distribution: [1] "nbinom"
Parameters: [1] 789.6169642   0.9397495

OpVaR documentation built on Sept. 8, 2021, 5:07 p.m.