transmission_probability_matrix: Create a setting transmission matrix

View source: R/setting-transmission-matrix.R

transmission_probability_matrixR Documentation

Create a setting transmission matrix

Description

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.

Usage

transmission_probability_matrix(..., age_breaks)

Arguments

...

list of matrices

age_breaks

age breaks - numeric

Value

transmission probability matrix

Examples


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


njtierney/conmat documentation built on April 17, 2025, 10:27 p.m.