View source: R/onevax_xpvwrh.R
set_protection | R Documentation |
generates vector which tells the model which strata are under vaccine protection and what the value of protection for that strata is
set_protection(i_v, idx, n_vax, ve_p, ve, ve_revax)
i_v |
indices of strata receiving protection through vaccination |
idx |
list containing indices of all X, P, V, W, R & H strata and n_vax through vaccine-protected strata until that protection has waned through vaccine-protected strata until that protection has waned |
n_vax |
integer denoting total number of strata |
ve_p |
scalar 0-1 with degree of partial primary protection of the P(N) strata, can take vea_p, vei_p, ves_p, ved_p |
ve |
scalar 0-1 with degree of full primary protection of the V(N) strata, can take vea, vei, ves, ved |
ve_revax |
scalar 0-1 with degree of re-vaccinated protection of the R(N) strata, can take vea_revax, vei_revax, ves_revax, ved_revax |
vector of length n_vax with zeros corresponding to the indices of strata with no protection, and the supplied degree of partial, full, and boosted protection corresponding to the indices of strata with partial, full and boosted vaccination status
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.