Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

surveillance (version 1.2-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

  • list
    • Y
    {matrix with number of cases $y_{it}$ in unit $i$ at time $t$ as elements, i.e. data without the first time point.} Ym1{matrix with previous number of cases $y_{i,t-1}$, i.e data without the last time point.} Ym1.neighbours{matrix with weighted sum of earlier counts of adjacent units $\sum_{j \sim i} m_{ji} y_{j,t-1}$ } nOfNeighbours{vector with number of neighbours for each unit $i$ } X.trendSeason{design matrix for linear trend and seasonal components} populationFrac{matrix with corresponding population proportions} dimTheta{list with number of parameters used in model} control{control object} disProgObj{Object of class disProg} lag{which lag is used for the autoregressive parameters $lambda$ and $phi$ } nObs{number of observations}

encoding

latin1