powered by
Computes the scaled tansmission assortativity coefficient, see function gamma2delta.
gamma2delta
get_delta(from, to, f, alpha = 0.05)
A data frame with the estimated delta, lower and upper confidence limits for each group.
A vector of infectors.
A vector of infectees.
A named numeric value representing the prevalence of each group in the population or directly the group sizes.
The significance level for the confidence interval.
from <- c("A", "A", NA, "C", "C", "C") to <- c("A", "B", "B", "C", "C", "C") f <- c(A = 0.3, B = 0.2, C = 0.5) get_delta(from, to, f, alpha = 0.05)
Run the code above in your browser using DataLab