buildFreqdist: Building a freqdist object

Description Usage Arguments Details Author(s) See Also Examples

View source: R/buildFreqdist.R

Description

Building a freqdist object

Usage

1
  buildFreqdist(freq.distr, freq.param)

Arguments

freq.distr

A string giving the name of the distribution.

Distributions "pois" and "nbinom" are recognised.

freq.param

List of numerical values giving the parameters for the given distribution.

Details

A freqdist object with type 'plain' is generated, i.e. for a given cell the losses occur with frequency given by distribution 'distr' with parameters given by 'param'.

Author(s)

Christina Zou

See Also

The sevdist objects according to different types are built via buildPlainSevdist, buildSplicedSevdist and buildMixingSevdist. For given data, a freqdist object can be fitted using fitFreqdist.

Examples

1
2
3
  # Poisson distributed frequency with lambda = 50
  
  freqdist1 = buildFreqdist("pois", 50)

Example output



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