Description Usage Arguments Details Value Examples
The function performs forward and backward elimination of variables in order to find the spatial model with a set of covariates that result in the smallest DIC.
1 2 | findModelWithSmallestDIC(response, raster_stack, A_mat, spde,
family = "binomial", save_output = TRUE)
|
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). |
raster_stack |
A collection of RasterLayer objects with the same spatial extent and resolution. |
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’. |
save_output |
A logical argument indicating if output to be saved to a csv file, Default: TRUE. |
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.