runModel {PointedSDMs}R Documentation

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.

Description

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

Usage

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

Value

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)


[Package PointedSDMs version 2.1.0 Index]