proba_ext: Compute the probability of extinction for a given alpha

Description Usage Arguments Value Author(s) Examples

View source: R/proba_ext.R

Description

If the transmission can be charaterised by a Poisson offspring distribution, see the function alpha.poisson(R) to compute alpha for a given R. The probability of extinction is computed assuming a single initial case. To obtain the probability extinction associated with n initial case, simply raise the probability returned by this function to the power of n.

Usage

1
proba_ext(alpha)

Arguments

alpha:

a value related to the reproduction number and the offspring distribution.

Value

The function returns the probability of extinction for a given alpha. Formally, Pext=exp(-alpha)

Author(s)

Pierre Nouvellet (p.nouvellet@imperial.ac.uk)

Examples

1
2
x <- proba.ext(c(.5,1))
x

reconhub/branchr documentation built on May 27, 2019, 4:01 a.m.