Description Usage Arguments Value Examples
View source: R/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 | integral_part(inf_times, rem_times, B, infected_inds)
|
inf_times |
A vector of the infection times of all individuals (Inf if not infected). |
rem_times |
A vector of the removal times of all infected individuals. |
B |
The infection rate matrix. |
infected_inds |
A vector of the infected individuals. |
Returns the value of the integral detailed above.
1 | This function is utilised by the log_likelihood function.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.