warning.score: Compute the warning score of a case (location and date).

View source: R/surveillance_utils.r

warning.scoreR Documentation

Compute the warning score of a case (location and date).

Description

Compute the warning score of a case – defined by its location (coordinates) and data – for a given set of cylinders (computed with CreateCylinders). It can be used in apply.

Usage

warning.score(case, cylinders, date.time.field = "week")

Arguments

case

A numeric; .

cylinders

A data.frame object encoding the events.

date.time.field

A character.

Value

A numeric.

Examples

warning.scores = apply(cases, 1, warning.score, cylinders)

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