findModelWithSmallestDIC: Find the best spatial model, i.e. the model with the smallest...

Description Usage Arguments Details Value Examples

Description

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.

Usage

1
2
findModelWithSmallestDIC(response, raster_stack, A_mat, spde,
  family = "binomial", save_output = TRUE)

Arguments

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

DETAILS

Value

OUTPUT_DESCRIPTION

Examples

1
2
3
4
5
6
## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

suyunkang/PrevalenceMapping documentation built on May 10, 2019, 1:52 a.m.