surveillance (version 1.12.1)

enlargeData: 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.

Value

  • disProga object disProg (disease progress) including a list of the observed and the state chain (extended with cyclic data generation)

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.

See Also

readData

Examples

Run this code
obj <- readData("k1")

    enlargeData(obj) # enlarge once with part 1:156
    enlargeData(obj, 33:36, 10) # enlarge 10 times with part 33:36

Run the code above in your browser using DataLab