.assign.events | R Documentation |
Assignment of outer events proceeds in reverse (coalescent) time, starting from the sampled Compartments.
.assign.events(run, events)
run: |
R6 object of class Run |
events: |
data frame from .sample.outer.events() |
TRUE if events converge to index case, otherwise FALSE to trigger sim.outer.tree() to re-run analysis
# reproduce issue #103
set.seed(5)
run <- Run$new(model)
eventlog <- run$get.eventlog()
eventlog$store.fixed.samplings(model$get.fixed.samplings())
events <- .sample.outer.events(run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.