View source: R/surveillance_utils.r
compute | R Documentation |
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 baseline.matrix
), and the probability that .
The function returns c(n_cases, mu, p.val)
.
compute(cylinder, observation.matrix, baseline.matrix, postcode.locations)
cylinder |
|
observation.matrix |
A |
baseline.matrix |
A |
postcode.locations |
A |
A numeric
vector of dimension 3.
exceedance=compute(c(x,y,rho,t.low,t.upp), observation.matrix, baseline.matrix, postcode.locations)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.