probability_basic: Probability of serial interval as a convolution of...

Description Usage Arguments Details Value Author(s) Examples

View source: R/likelihood.R

Description

Probability of serial interval

Usage

1
2
3
4
5
6
7
probability_basic(
  t,
  inf_distr = "dgamma",
  inc_distr = "dgamma",
  inf_params,
  inc_params
)

Arguments

t

observed serial interval

inf_distr

quoted name of the infectious period density function. Defaults to dgamma

inc_distr

quoted name of the incubation period density function. Defaults to dgamma

inf_params

named list of arguments for infectious period distribution.

inc_params

named list of arguments for incubation period distribution.

Details

Probability of observing a serial interval t is the convolution of the distributions of infectious profile and incubation period.

Value

numeric. Probability of observing the given serial interval given the parameters of infectious period distributions and incubation period distributions

Author(s)

Sangeeta Bhatia

Examples

1
2
3
4
5
probability_basic(
  10,
  inf_params = list(shape = 100, rate = 100),
  inc_params = list(shape = 50, rate = 100)
)

mrc-ide/hermione documentation built on Aug. 15, 2020, 9:16 a.m.