compute.from.tab.baseline: Compute exceedance probability in a cylinder.

View source: R/surveillance_utils.r

compute.from.tab.baselineR Documentation

Compute exceedance probability in a cylinder.

Description

A cylinder is defined by the circle coordinated (say, x,y, and radius) and lower and upper height limits (aay, t.low and t.upp, respectively). For a given cylinder, this function computes the number of observed events (n_cases) in the cylinder according to observation.matrix, the expected number mu of events according the Poisson point model (with intensity defined in tab.baseline), and the probability that . The function returns c(n_cases, mu, p.val).

Usage

compute.from.tab.baseline(
  cylinder,
  observation.matrix,
  tab.baseline,
  postcode.locations
)

Arguments

cylinder
observation.matrix

A sparseMatrix object encoding the events.

tab.baseline

An expand.grid tab encoding the baseline.

postcode.locations

A data.frame that maps the rows of observation.matrix to geographical coordinates.

Value

A numeric vector of dimension 3.

Examples

exceedance=compute(c(x,y,rho,t.low,t.upp), observation.matrix, tab.baseline, postcode.locations)

mcavallaro/rancovr documentation built on April 17, 2025, 7:21 p.m.