Description Usage Arguments Details Value Examples
Fit the final spatial model using a subset of data for the purpose of cross-validation.
1 2 | fitFinalModel(response, val_DAT, finalmodel, A_mat, spde, family = "binomial",
raster_stack, int.strategy)
|
response |
A data frame containing the response data including number of positive cases (n_positive), number of individuals examined (examined), and point locations (longitude and latitude). |
val_DAT |
Subset of data for cross-validation. |
finalmodel |
An object returned from the function findModelWithSmallestDIC. |
A_mat |
An observation/prediction weight matrix returned from makeMeshSPDE. |
spde |
An inla.spde2 model object for a Matern model returned from makeMeshSPDE. |
family |
A string indicating the likelihood family, Default: ‘binomial’. |
raster_stack |
A collection of RasterLayer objects with the same spatial extent and resolution. |
int.strategy |
Character. The integration strategy to use; one of ‘auto’, ‘ccd’, ‘grid’, ‘eb’ (empirical bayes), ‘user’ or ‘user.std’. |
DETAILS
OUTPUT_DESCRIPTION
1 2 3 4 5 6 | ## Not run:
if(interactive()){
#EXAMPLE1
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.