Learn R Programming

R0 (version 1.2-10)

fit.epid.optim: Joint estimation of GT distribution and R

Description

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

Usage

fit.epid.optim(par = c(1, 
    1, 1), ...)

Arguments

par

vector of parameters to be optimised. This should be provided as c(R0, GT.mean, GT.sd)

...

parameters passed to inner functions

Author

Pierre-Yves Boelle, Thomas Obadia

Details

For internal use. Called by est.R0.ML. This is a wrapper function used to pass proper arguments to fit.epid when the ML method is used to estimate simultaneously R and GT. It is used by the optim routine to find the best-fitting parameters for R and GT (following a Gamma dsitribution)