memintensity is used to calculate the thresholds for influenza activity
using historical records (surveillance rates).
This method is based on the Moving Epidemics Method (MEM) used to monitor influenza
activity in a weekly surveillance system.memintensity(i.data, i.levels = c(0.40,0.90,0.975), i.n.max = -1, i.seasons = 10)memintensity returns a list with three objects, two of them are the parameters
used (param.levels and param.seasons) and the third one
(intensity.thresholds) is a matrix 1x4 with the epidemic and intensity thresholds.
1 Epidemic threshold.
2 Low intensity threshold.
3 Medium intensity threshold.
4 High intensity threshold.
}i.levels, define the three levels of the confidence intervals
used to calculate thresholds.
The i.n.max parameter indicates how many epidemic values to use to calculate
the thresholds. A value of -1 indicates the program to use an appropiate number of
points depending on the number of seasons provided as input.
The i.seasons parameter indicates how many seasons are used for calculating
thresholds. A value of -1 indicates the program to use as many as possible. If there
are less than this parameter, the program used all seasons avalaible.
Intensity thresholds and Epidemic threshold defines 5 levels of intensity:
1 Baseline level - Below epidemic threshold.
2 Low level - Above epidemic threshold and below low intensity
threshold.
3 Medium level - Above low intensity threshold and below medium
intensity threshold.
4 High level - Above medium intensity threshold and below high
intensity threshold.
5 Very high level - Above high intensity threshold.
}library(mem)
## Castilla y Leon Influenza Rates data
data(flucyl)
## Finds the timing of the first season: 2001/2002
intensity<-memintensity(flucyl)
intensityRun the code above in your browser using DataLab