loglikelihoodepiILM {EpiILMCT} | R Documentation |
Calculates the log likelihood
Description
Calculates the log likelihood for the specific compartmental framework of the continuous-time ILMs.
Usage
loglikelihoodepiILM(object, distancekernel = NULL, control.sus = NULL,
control.trans = NULL, kernel.par = NULL, spark = NULL, gamma = NULL,
delta = NULL)
Arguments
object |
an object of class “datagen” that can be the output of |
distancekernel |
the spatial kernel type when |
control.sus |
a list of values of the susceptibility function (>0):
where, |
control.trans |
it has the same structure as the |
kernel.par |
a scalar spatial parameter for the distance-based kernel (>0), or a vector of the spatial and network effect parameters of the network and distance-based kernel (both). It is not required when the |
spark |
spark parameter (>=0), representing random infections that are unexplained by other parts of the model. Default value is zero. |
gamma |
the notification effect parameter for SINR model. The default value is 1. |
delta |
a vector of the shape and rate parameters of the gamma-distributed infectious period (SIR) or a 2 |
Details
We label the infected individuals
corresponding to their infection (
) and removal (
) times; whereas the
individuals who remain uninfected are labeled
with
. We then denote infection and removal time vectors for the population as
and
, respectively. We assume that infectious periods follow a gamma distribution with shape and rate
. The likelihood of the general SIR continuous-time ILMs is then given as follows:
where is the vector of unknown parameters; f(.;
) indicates the density of the infectious period distribution; and
is the infectious period of infected individual
defined as
. The likelihood of the general SINR continuous-time ILMs is given by:
where and
are the incubation and delay periods such that
and
, and
for , and
for .
Note, is used only under the SINR model.
Value
Returns the log likelihood value.
See Also
contactnet, datagen, epictmcmc
.