enlargeData           package:surveillance           R Documentation

_D_a_t_a _E_n_l_a_r_g_e_m_e_n_t

_D_e_s_c_r_i_p_t_i_o_n:

     Enlargement of data which is too short for a surveillance method
     to evaluate.

_U_s_a_g_e:

         enlargeData(disProgObj, range = 1:156, times = 1)

_A_r_g_u_m_e_n_t_s:

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.

_D_e_t_a_i_l_s:

     '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.

_V_a_l_u_e:

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

_S_e_e _A_l_s_o:

     'readData'

_E_x_a_m_p_l_e_s:

         obj <- readData("k1")

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

