makeMeshSPDE: Make a mesh, build an spde model, and a projector matrix

Description Usage Arguments Value Examples

Description

Construct a nonconvex boundary for a set of points. Create a triangle mesh based on initial point locations, specified or automatic boundaries, and mesh quality parameters. Construct observation/prediction weight matrices for models. Create an inla.spde2 model object for a Matern model.

Usage

1
2
makeMeshSPDE(response, control = list(convex = NULL, concave = NULL, max_edge
  = NULL, cutoff = NULL), plot_mesh = FALSE)

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).

control

Parameters controlling inla.nonconvex.hull and inla.mesh.2d, including convex, concave, max_edge, and cutoff.

plot_mesh

A logical argument indicating if mesh is to be plotted, Default: FALSE.

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.