Description Usage Arguments Details Value Note Source
Simulates a multivariate time series of counts based on the Poisson/Negative Binomial model as described in Held et al. (2005).
1 2 3 4 5 6 7 8 
control 
list with

model 
Result of a model fit with

length 
number of time points to simulate 
Simulates data from a Poisson or a Negative Binomial model with mean
μ_{it} = λ y_{i,t1} + φ ∑_{j \sim i} y_{j,t1} + n_{it} ν_{it}
where
\log ν_{it} = α_i + ∑_{s=1}^{S}(γ_s sin(ω_s t) + δ_s cos(ω_s t))
ω_s = 2sπ/\code{period} are Fourier frequencies and n_{it} are possibly standardized population sizes.
Returns a list with elements
data 

mean 
matrix with mean μ_{i,t} that was used to simulate the data 
endemic 
matrix with only the endemic part ν_{i,t} 
coefs 
list with parameters of the model 
The model does not contain a linear trend.
Held, L., Höhle, M., Hofmann, M. (2005). A statistical framework for the analysis of multivariate infectious disease surveillance counts. Statistical Modelling, 5, p. 187199.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.