Description Usage Arguments Value Examples
View source: R/chris_prod_part.R
This function is used in the calculation of the likelihood for a General Stochastic Epidemic, and calculates ∏_{j != kappa}^{n_I} [ ∑_{ i in I_{n_{j-}} } [ beta_{i,j} ] ].
1 | chris_prod_part(t_inf_j, events, B)
|
t_inf_j |
A vector of the infection times of all individuals (Inf if not infected), ordered by ID. |
events |
A 2 column matrix where the first column is the infection times, and the second is the paired removal times. |
B |
The infection rate matrix. |
Returns the value of the product detailed above.
1 | This function is utilised by the chris_log_likelihood function.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.