generate a contact matrix (where each row is a probability distribution)

mk_pmat(age_cat = mk_agecats(), dist = "unif", Nvec = NULL)

Arguments

age_cat

age categories (made with `mk_agecats()`)

dist

(character) either "unif" for uniform, "rand" for a random distributions by age, or "diag" for strictly within-age mixing (pmat = the identity matrix)

Nvec

population distribution vector (needed to generate a "balanced" random contact probability matrix if population distribution isn't perfectly uniform)