Learn R Programming

MultiBD (version 1.0.1)

SEIR_prob: Transition probabilities of an SEIR process

Description

Computes the transition pobabilities of an SIR process using the bivariate birth process representation

Usage

SEIR_prob(
  t,
  alpha,
  beta,
  kappa,
  S0,
  E0,
  I0,
  nSE,
  nEI,
  nIR,
  direction = c("Forward", "Backward"),
  nblocks = 20,
  tol = 1e-12,
  computeMode = 0,
  nThreads = 4
)

Value

a matrix of the transition probabilities

Arguments

t

time

alpha

removal rate

beta

infection rate

kappa

rate at which an exposed person becomes infective

S0

initial susceptible population

E0

initial exposed population

I0

initial infectious population

nSE

number of infection events

nEI

number of events at which an exposed person becomes infective

nIR

number of removal events

direction

direction of the transition probabilities (either Forward or Backward)

nblocks

number of blocks

tol

tolerance

computeMode

computation mode

nThreads

number of threads