R_eff_poisson: Obtain an effective R when conditionning on extinction and...

Description Usage Arguments Value Author(s) Examples

View source: R/R_eff_poisson.R

Description

For any Rl>1, we can find an Rs<1 guaranteeing that conditional on extinction, outbreak properties starting from Rs or Rl are exactly the same. We call this Rs an effective R. The funtion compute the effetive R as well as alpha (see alpha_poisson) and the probability of extinction (see proba_ext)

Usage

1

Arguments

R

is the reproduction number, i.e. the average number of secondary cases due to a single case. This can be any positive number. if R is a vector, then the length of R must be 'n' (see below).

Value

The function returns a list including:

#'

Author(s)

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

Examples

1
2
3
4
x <- R_eff_poisson(.5)
x
x <- R_eff_poisson(1.5)
x

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