View source: R/setting-prediction-matrix.R
setting_prediction_matrix | R Documentation |
Helper function to create your own setting prediction matrix, which you
may want to use in generate_ngm
, or autoplot
. This class is the
output of functions like extrapolate_polymod
, and
predict_setting_contacts
. We recommend using this function is only for
advanced users, who are creating their own setting prediction matrix.
setting_prediction_matrix(..., age_breaks)
... |
list of matrices |
age_breaks |
age breaks - numeric |
setting prediction matrix
age_breaks_0_80_plus <- c(seq(0, 80, by = 10), Inf)
one_by_nine <- matrix(1, nrow = 9, ncol = 9)
x_example <- setting_prediction_matrix(
home = one_by_nine,
work = one_by_nine,
age_breaks = age_breaks_0_80_plus
)
x_example <- setting_prediction_matrix(
one_by_nine,
one_by_nine,
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.