get_Ri | R Documentation |
This function computes the number of secondary infections caused by each individual from outbreaker2 MCMC chains. For each MCMC iteration, it counts how many times each individual appears as an infector (alpha parameter).
get_Ri(out)
out |
An object of class |
A data frame where:
Each row represents an MCMC iteration
Each column represents an individual (named by their identifier)
Values represent the reproduction number (Ri) for that individual in that iteration
out_id <- identify(out, ids = linelist$name)
Ri <- get_Ri(out_id)
str(Ri)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.