disaggregate: Return disaggregated counts

Description Usage Arguments Value Author(s)

Description

Distribute the case count for a spatial unit into subunits

Usage

1
disaggregate(total, pmatrix, sim = 1000)

Arguments

total

case count for large spatial unit

pmatrix

matrix of probabilities. Each row corresponsd to a single run and each column is a spatial sub-unit.

sim

Number of simulations (i.e., draws) for the multinomial distribution. Note that this need not be the same as the number of rows in pmatrix.

Value

matrix with nrow(pmatrix) * sim rows and ncol(pmatrix) columns

Author(s)

Sangeeta Bhatia


annecori/mRIIDSprocessData documentation built on May 29, 2019, 1:16 p.m.