log_likelihood_t: Log likelihood under given model.

Description Usage Arguments Details Value Author(s)

Description

Log-likelihood of observing the given incidence under the model.

Usage

1
log_likelihood_t(I0, pij, R, si, x)

Arguments

I0

T X N matrix of incidence

pij

N X N. Element i, j is the probability of moving from i to j.

R

either 1 X N matrix of reproduction numbers in each location at t or T X N matrix of reproduction numbers in each location at each time step from 1 to t.

si

A vector drawn from serial interval distribution. If the length of the vector is less than T, it is padded with 0s.

x

N X 1 vector of observed incidence at step t.

Details

The model is

I_{j, t} = ∑_{i = 1}^N{p_{ij} R_{i, t} ∑_{s = 1}^t{I_{i, t - s}si_s}}

Value

log likelihood of observing x at step t.

Author(s)

Sangeeta Bhatia


annecori/mRIIDSprocessData documentation built on May 29, 2019, 1:16 p.m.