This function implement the model fitting of the spatiotemporal epidemic model.
1 2 3 4 5 6 7 |
data |
A data frame or list containing the model response variable and covariates required by the formula. |
formula |
A STEM formula which is exactly like the formula for a GAM except that bivariate smooth terms, f(), can be added to the right hand side to specify that the predictor depends on bivariate smooth functions of predictors. |
location |
Location information used in the bivariate smooth function. |
V |
Vertices of a triangulation. |
Tr |
Triangles of a triangulation. |
d |
Degree of polynomials in bivariate smooth funciton, default is 2. |
r |
Smoothness parameter in bivariate smooth function, default is 1. |
family |
This is a family object specifying the distribution and link to use in fitting etc, default is ziP() (the zero-inflated poisson). |
offset |
The offset used to supply a model fitting. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.