Description Usage Arguments Details Examples
View source: R/exposureModel.R
Create an ExposureModel object, describing an epidemic intensity process
1 2 3 4 5 6 7 8 | ExposureModel(
X,
nTpt,
nLoc,
betaPriorPrecision = NA,
betaPriorMean = NA,
offset = NA
)
|
X |
an $(n*T)$ by $p$ design matrix, where $n$ is the number of locations, $T$ is the number of time points, and $p$ is the number of exposure process parameters. Each column corresponds to a parameter, while each block of $T$ rows corresponds to the time series of covariate values associated with a location. |
nTpt |
the number of time points, $T$ |
nLoc |
the number of locations, $N$ |
betaPriorPrecision |
the prior precisions of the $p$ exposure process parameters |
betaPriorMean |
the prior means of the $p$ exposure process parameters |
offset |
a vector of $T$ temporal offset terms, capturing the relative ammount of aggregated continuous time corresponding to each recorded discrete time point. |
The exposure process allows the inclusion of both spatially and temporally varying covariates, as well as invariant quantities (intercepts, demographic features etc.).
1 2 3 4 | exposureModel <- ExposureModel(cbind(1, (1:25)/25),
nTpt = 25, nLoc = 1,
betaPriorPrecision = 0.1,
betaPriorMean = 0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.