Computes the tansmission assortativity coefficient defined as the excess probability of a secondary infection taking place within-group compared to random expectations.
Usage
get_gamma(from, to, f, alpha = 0.05)
Value
A data frame with the estimated gamma, lower and upper confidence limits for each group.
Arguments
from
A vector of infectors.
to
A vector of infectees.
f
A named numeric value representing the prevalence of each group in the population or directly the group sizes.
alpha
The significance level for the confidence interval.