Description Usage Arguments Value Examples
View source: R/simple_log_likelihood.R
This function is used tp calculate the likelihood of a General Stochastic Epidemic, and brings together all the previously specified functions; prod_part, interval_intersect, and integral_part.
1 | simple_log_likelihood(inf.times, rem.times, beta.mat)
|
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. |
beta.mat |
The infection rate matrix. |
Returns the value of the log likelihood, up to a constant of proportionality.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.