runModel function

runModel: function used to run the integrated model. Note that this function is depreciated, and will be removed in a later version of the package.

runModel: function used to run the integrated model. Note that this function is depreciated, and will be removed in a later version of the package.

This function takes a intModel object and produces an inlabru model object with additional lists and meta-data added.

runModel(data, options = list())

Arguments

  • data: A intModel object to be used in the integrated model.
  • options: A list of INLA options used in the model. Defaults to list().

Returns

An inlabru model with additional lists containing some more metadata attached.

Examples

## Not run: if (requireNamespace('INLA')) { #Get Data data("SolitaryTinamou") proj <- "+proj=longlat +ellps=WGS84" data <- SolitaryTinamou$datasets mesh <- SolitaryTinamou$mesh mesh$crs <- proj #Set model up organizedData <- intModel(data, Mesh = mesh, Coordinates = c('X', 'Y'), Projection = proj, responsePA = 'Present') ##Run the model modelRun <- runModel(organizedData, options = list(control.inla = list(int.strategy = 'eb'))) #Print summary of model modelRun } ## End(Not run)