Immunity waning functions So far, all functions are related to parameterisation of gamma model for (vaccine acquired) immunity waning. These functions facilitate stratifying parameters by age or by other criteria.
This function assumes that each parameter, imm_*, follows the same distribution (family) across all age groups, though the distribution’s parameters can be different across ages.
Specifically in this case:
imm_constant_dur is a constant distribtion, depending on age
imm_ve0 is a constant distribution, depending on age
imm_decay_shape is an constant distribution, independent of age
imm_decay_rate is an constant distribution, depending on age
This means all agents aged x will have identical values of the corresponding immunity parameter (ie, ss.constant())