You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The contact likelihood function does not consider directed contacts (link to code & article) despite the outbreaker_config() function allowing specification of whether contacts are directed. If the user specifies that ctd_directed = TRUE in outbreaker_config(), the resulting contact matrix will not be pairwise.
Proposed Solution:
Simplify the internal handling of the contact matrix to always make it pairwise, regardless of user input. Alternatively, remove the option for directed contacts.
It's true that the original paper states we use only non-directed contacts, but we made a later addition to the package itself to accommodate directed contacts too. As far as I can tell, when ctd_directed=TRUE and the matrix is not symmetrical, cpp_ll_contact will only count a "true positive" (i.e. a transmission pair aligns with a reported contact) if the directionality is also aligned (i.e. A contacted B and A infected B). The likelihood code refers to a pairwise matrix but by that I don't mean symmetrical, I just mean it contains information on all infector-infectee pairs.
Not sure if that makes sense, let me know. It shouldn't be too difficult to run some tests to check whether the implementation actually works, I am on leave for all of August though and so don't have capacity to do that now.
Description:
The contact likelihood function does not consider directed contacts (link to code & article) despite the outbreaker_config() function allowing specification of whether contacts are directed. If the user specifies that
ctd_directed = TRUE
inoutbreaker_config()
, the resulting contact matrix will not be pairwise.Proposed Solution:
Simplify the internal handling of the contact matrix to always make it pairwise, regardless of user input. Alternatively, remove the option for directed contacts.
Illustration Code:
The text was updated successfully, but these errors were encountered: