Description Usage Arguments Value Examples
View source: R/simple_integral_part.R
This function is used in the calculation of the likelihood for a General Stochastic Epidemic, and calculates the integral part of the infection likelihood, using the alternative double-sum parameterisation.
1 2 | simple_integral_part(I = inf.times, R = rem.times,
beta.mat = beta.mat)
|
I |
A vector of the infection times of all individuals (Inf if not infected), ordered by ID. |
R |
A vector of the infection times of all individuals (Inf if not infected), ordered by ID. |
beta.mat |
The infection rate matrix. |
Returns the value of the integral detailed above.
1 | This function is utilised by the simple_log_likelihood function.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.