Learn R Programming

R0 (version 1.2-10)

fit.epid: Compute the Poisson log - likelihood between epid and epidemic simulated with R and GT

Description

Compute the Poisson log - likelihood between epid and epidemic simulated with R and GT.

Usage

fit.epid(log.R, epid, 
    GT, import, pred = FALSE, 
    offset = 0)

Value

Returns a Poisson log-likelihood with given R and GT

Arguments

log.R

log Reproduction ratio

epid

epidemic

GT

Generation time distribution.

import

Vector of imported cases.

pred

Returns either the predictive curve or the log-likelihood value (default)

offset

to offset (confidence interval)

Author

Pierre-Yves Boelle, Thomas Obadia

Details

For internal use. Called by est.R0.ML.

For internal use. Called from est.ML.R0. Compute the Poisson likelihood of epidemic.