proba_observation: Obtain intermediate useful quantities

Description Usage Arguments Value Author(s) Examples

View source: R/proba_observation.R

Description

1) Rough expectation for R ($approx_R) 2) Possible outbreak sizes ($possible_size) 3) new format for observations ($y_obs_reformat) 4) g: the probability of observing y given z,rho (reporting rate), with z the true number of cases (reported and un-reported cases) ($p_y_z) 5) g0: the probability of not observing an outbreak (i.e. y=0 or no cases) given z and rho.

Usage

1
proba_observation(y, rho, threshold)

Arguments

y:

a vector of outbreak sizes observations.

rho:

the probability of a single case being detected.

threshold:

the maximum true final size of an outbreak. this need to be much higher than the largest observed outbreak to account for reporting and properly evaluate the distribution of outbreak sizes

Value

The function returns a list including:

#'

Author(s)

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

Examples

1
2
x <- proba_observation(c(1,2,3),.5,1e3)
x

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