Usage
epiBR0(x=NULL, y=NULL, contact=NULL, alpha, beta, spark=NULL, infperiod, Sformula=NULL, tmax, niter)
Arguments
x
X coordinates of individuals
y
Y coordinates of individuals
contact
Contact network(s)
alpha
Susceptibility parameter(>0)
beta
Spatial parameter(s) (>0) or network parameter (s) (>0) if contact is used
spark
Sparks parameter (>=0), representing infections unexplained by other parts
of the model or infections coming in from outside the observed population, default value is zero
infperiod
Length of infectious period for each individual
Sformula
An object of class formula. See formulaIndividual-level covariate information passable through this argument. An expression of the form ~ model
is interpreted as a specification that the susceptibility function, \(\Omega_s(i) \) is modelled by a linear predictor specified symbolically by the model term. Such a model consists of a series of terms separated by +
and -
operators. If there is no covariate information, Sformula
is null.
tmax
The last time point of simulation
niter
Number of epidemic simulations to calculate basic reproduction number