multiply.contact.array.to: Multiply a transmission contact array by rates for the 'to'...

View source: R/transmission.R

multiply.contact.array.toR Documentation

Multiply a transmission contact array by rates for the 'to' population

Description

Fundamentally, a contact array can be thought of as taking the outer product of a 'from array' with a 'to array'. This function equates to multiplying the to array portion prior to taking the outer product with the from array portion

Usage

multiply.contact.array.to(jheem, contact.array, to.multiplier)

Arguments

jheem

An object of jheem-class

contact.array

A contact array, with dimensions: [age.from, race.from, subpopulation.from, sex.from, risk.from, age.to, race.to, subpopulation.to, sex.to, risk.to, non.hiv.subset.to]

from.multiplier

An array with dimensions matching the HIV-negative population: [age, race, subpopulation, sex, risk, non.hiv.subset]

See Also

Other functions for transmission contact arrays: create.contact.array.from.marginals(), get.contact.array.skeleton(), multiply.contact.array.from(), set.transmission.contact.array()


tfojo1/jheem documentation built on Oct. 7, 2022, 1:24 p.m.