pixelPopToArea
Aggregates population from the pixel level to the level of the area of interest.
aggPixelPreds(
Zg,
Ng,
areas,
urban = target.pop.mat$urban,
target.pop.mat = NULL,
use.density = FALSE,
stratify.by.urban = TRUE,
normalize = use.density
)
nIntegrationPoint x nsim matrix of simulated response (population numerators) for each pixel and sample
nIntegrationPoint x nsim matrix of simulated counts (population denominators) for each pixel and sample
nIntegrationPoint length character vector of areas (or subareas)
nIntegrationPoint length vector of indicators specifying whether or not pixels are urban or rural
same as in simPopCustom
whether to use population density as aggregation weights.
whether or not to stratify simulations by urban/rural classification
if TRUE, pixel level aggregation weights within specified area are normalized to sum to 1. This produces an average of the values in Zg rather than a sum. In general, should only be set to TRUE for smooth integrals of risk.