simHHH: Simulates data based on the model proposed by Held et. al...

Description Usage Arguments Details Value Note Source

Description

Simulates a multivariate time series of counts based on the Poisson/Negative Binomial model as described in Held et al. (2005).

Usage

1
2
3
4
5
6
7
8
9
## Default S3 method:
simHHH(model=NULL, control = list(coefs = list(alpha=1, gamma = 0, delta = 0,
       lambda = 0, phi = NULL, psi = NULL, period = 52),
       neighbourhood = NULL, population = NULL, start = NULL),

       length)

## S3 method for class 'ah'
simHHH(model, control = model$control, length)

Arguments

control

list with

coefs

list with the following parameters of the model - if not specified, those parameters are omitted

alpha

vector of length m with intercepts for m units or geographic areas respectively

gamma

vector with parameters for the "sine" part of ν_{i,t}

delta

vector with parameters for the "cosine" part of ν_{i,t}

lambda

autoregressive parameter

phi

autoregressive parameter for adjacent units

psi

overdispersion parameter of the negative binomial model; NULL corresponds to a Poisson model

period

period of the seasonal component, defaults to 52 for weekly data

neighbourhood

neighbourhood matrix of size m \times m with element 1 if two units are adjacent; the default NULL assumes that there are no neighbours

population

matrix with population proportions; the default NULL sets n_{i,t}=1

start

if NULL, the means of the endemic part in the m units is used as initial values y_{i,0}

model

Result of a model fit with algo.hhh, the estimated parameters are used to simulate data

length

number of time points to simulate

Details

Simulates data from a Poisson or a Negative Binomial model with mean

μ_{it} = λ y_{i,t-1} + φ ∑_{j \sim i} y_{j,t-1} + 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.

Value

Returns a list with elements

data

disProgObj of simulated 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

Note

The model does not contain a linear trend.

Source

Held, L., Höhle, M., Hofmann, M. (2005). A statistical framework for the analysis of multivariate infectious disease surveillance counts. Statistical Modelling, 5, p. 187-199.


jimhester/surveillance documentation built on May 19, 2019, 10:33 a.m.