Skip to contents

Make contact matrix from Mistry et al. data

Usage

mk_contact_pars(age.group.lower = NULL, setting.weight, pop.new = NULL)

Arguments

age.group.lower

(optional) Numeric vector. Lower bounds for aggregated age groups, if desired.

setting.weight

Named numeric vector of the average contact rate by setting to reflect closures.

pop.new

(optional) Numeric vector. Specifies new population sizes by age with which to renormalize contact matrices. Must match up with age groups given in age.group.lower (if provided) or original Mistry age groups (one year age groups up to 84, with a single age group for 85+).

Value

A list with:

  • p.mat: the row-normalized matrix of contact probabilities

  • c.hat: the vector of row sums from the contact rate matrix, giving the average contact rate per age group; used to set up the transmission vector to maintain the contact balance condition