View source: R/setting-transmission-matrix.R
transmission_probability_matrix | R Documentation |
Helper function to create your own setting transmission matrix, which you
may want to use in ... or autoplot
. This class is the
output of functions like ...
, and ... . We recommend using this
function is only for advanced users, who are creating their own
transmission probability matrix.
transmission_probability_matrix(..., age_breaks)
... |
list of matrices |
age_breaks |
age breaks - numeric |
transmission probability matrix
age_breaks_0_80_plus <- c(seq(0, 80, by = 10), Inf)
one_05 <- matrix(0.05, nrow = 9, ncol = 9)
x_example <- transmission_probability_matrix(
home = one_05,
work = one_05,
age_breaks = age_breaks_0_80_plus
)
x_example <- transmission_probability_matrix(
one_05,
one_05,
age_breaks = age_breaks_0_80_plus
)
x_example
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.