surveillance (version 1.12.1)

make.design: Create the design matrices

Description

Creates the design matrices needed for meanResponse

Usage

make.design(disProgObj, control=list(lambda=TRUE, neighbours=FALSE, 
   linear=FALSE, nseason=0,
   negbin=c("none", "single", "multiple"), 
   proportion=c("none", "single", "multiple"),lag.range=NULL) )

Arguments

disProgObj
object of class disProg
control
control object: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

Value

  • Returns a list with elements
  • Ymatrix with number of cases $y_{it}$ in unit $i$ at time $t$ as elements, i.e. data without the first time point.
  • Ym1matrix with previous number of cases $y_{i,t-1}$, i.e data without the last time point.
  • Ym1.neighboursmatrix with weighted sum of earlier counts of adjacent units $\sum_{j \sim i} m_{ji} y_{j,t-1}$
  • nOfNeighboursvector with number of neighbours for each unit $i$
  • X.trendSeasondesign matrix for linear trend and seasonal components
  • populationFracmatrix with corresponding population proportions
  • dimThetalist with number of parameters used in model
  • controlcontrol object
  • disProgObjObject of class disProg
  • lagwhich lag is used for the autoregressive parameters $\lambda$ and $\phi$
  • nObsnumber of observations

encoding

latin1