Description Usage Arguments Value Examples
View source: R/chris_interval_intersect.R
This function is used in the calculation of the likelihood for a General Stochastic Epidemic, and calculates the interval intersect used in the calculation of the intergral for the infection likelihood. This is the interval [ (R_i ^ I_j) - (I_i ^ I_j) ] for i in infecteds and j in all.
1 | chris_interval_intersect(interval_i, interval_j)
|
interval_i |
Is the matrix cbind(t_inf, t_rem)[infected, ]. This is a 2 column matrix of the infection and removal times for the infected individuals. |
interval_j |
Is the matrix cbind(t_inf, t_rem). This is a 2 column matrix of the infection and removal times for all individuals. |
Returns a matrix where each column is a vector for each j.
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.