set_protection: generates vector which tells the model which strata are under...

View source: R/onevax_xpvwrh.R

set_protectionR Documentation

generates vector which tells the model which strata are under vaccine protection and what the value of protection for that strata is

Description

generates vector which tells the model which strata are under vaccine protection and what the value of protection for that strata is

Usage

set_protection(i_v, idx, n_vax, ve_p, ve, ve_revax)

Arguments

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

Value

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


mrc-ide/gonovax documentation built on Dec. 15, 2024, 11:02 a.m.