BetaBinomial: BetaBinomial Class

BetaBinomialR Documentation

BetaBinomial Class

Description

An element that describes a beta-binomial Poisson distribution

Super classes

biorisk::RiskElement -> biorisk::NA -> BetaBinomial

Methods

Public methods

Inherited methods

Method new()

Creates a new instance of this R6 class.

Usage
BetaBinomial$new(name, units = NA, output_unit = NA, level = 0)
Arguments
name

A character defining the name for the element

units

A character vector of units for each input

output_unit

A character with the unit of the output

level

Level of the distribution (for 2D Monte Carlo). By default, 0

Returns

A new instance of the element


Method point_estimate()

Returns the expected value

Usage
BetaBinomial$point_estimate()

Method clone()

The objects of this class are cloneable with this method.

Usage
BetaBinomial$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


albgarre/biorisk documentation built on Feb. 23, 2025, 5:19 a.m.