get.uniform.new.infection.proportions: Get a new infection proportions array where new infections...

View source: R/transmission.R

get.uniform.new.infection.proportionsR Documentation

Get a new infection proportions array where new infections are seeded uniformly

Description

The return value will be a new infection proportions array such that the new infection proportions are the same across all strata of age x race x subpopulation x sex x risk x non.hiv.subset, with new infections being distributed uniformly across the specified continuum, cd4, and hiv.subset specified

Usage

get.uniform.new.infection.proportions(
  jheem,
  initial.continuum = jheem$continuum.of.care[1],
  initial.cd4 = jheem$cd4.strata[1],
  initial.hiv.subset = jheem$hiv.subsets[1]
)

Arguments

jheem

An object of jheem-class

initial.continuum, initial.cd4, initial.hiv.subset

The index (indices) or name(s) of the dimensions into which new infections are to be distributed uniformly

Details

A new infection proportions array should have dimensions [age, race, subpopulation, sex, risk, non.hiv.subset, continuum, cd4, hiv.subset]. For each combination of age x race x subpopulation x sex x risk x non.hiv.subset, proportions[age,race,subpopulation,sex,risk,non.hiv.subset,,,] should sum to 1 and represent the proportions according to which new infections from the age x race x subpopulation x sex x risk x non.hiv.subset are distributed across strata of continuum x cd4 x hiv.subset

See Also

Other functions handling new infection proportions: get.new.infection.proportions.skeleton(), set.new.infection.proportions()


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