| enlargeData {surveillance} | R Documentation |
Data Enlargement
Description
Enlargement of data which is too short for a surveillance method to evaluate.
Usage
enlargeData(disProgObj, range = 1:156, times = 1)
Arguments
disProgObj |
object of class disProg (including the observed and the state chain). |
range |
range of already existing data (state, observed)
which should be used for enlargement. |
times |
number of times to enlarge. |
Details
observed and state are enlarged in the way that the part range
of observed and state
is repeated times times in front of observed and state.
Sometimes it's useful to care for the cyclic property of the timeseries, so as default
we enlarge observed and state once with the first three existing years, assuming a year
has 52 weeks.
Value
disProg |
a object disProg (disease progress) including a list of the observed
and the state chain (extended with cyclic data generation) |
See Also
readData
Examples
obj <- readData("k1")
enlargeData(obj) # enlarge once with part 1:156
enlargeData(obj, 33:36, 10) # enlarge 10 times with part 33:36
[Package
surveillance version 0.9-2
Index]