ppSpaceTimeLarge: Spatio-temporal point process model for large data

Description Usage Arguments Value

View source: R/ppSpaceTimeLarge.R

Description

Spatio-temporal point process model using INLA designed for data that are composed of many occurrences. This function is essentially a sophisticated wrapper over inla

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
ppSpaceTimeLarge(
  formula,
  y,
  ppWeight,
  explanaMesh,
  meshTime,
  smooth = 2,
  prior.range = c(0.05, 0.01),
  prior.sigma = c(1, 0.01),
  prior.pccor = c(0.7, 0.7),
  ...
)

Arguments

formula

A formula that only relates the response y and some (or all) of the explanatory variables X. A paricularity of the is formula is that the response has to be defined as y.

y

A 3-columns matrix defining the x and y coordinates of where a species was found and the last column represents the time (generally in days of the year) when a species was found.

ppWeight

An object of class ppWeight

explanaMesh

An object of class explanaMesh

meshTime

An object of class inla.mesh.1d

smooth

A single value ranging between 0 and 2 passed to inla.spde2.pcmatern. It defines the smoothness of the Matern SPDE model. Default is set at 2.

prior.range

A vector of length 2, with (range0, Prange) specifying that P(ρ < ρ_0) = p_ρ, where ρ is the spatial range of the random field. If Prange is NA, then range0 is used as a fixed range value. Default is c(0.05, 0.01).

prior.sigma

A vector of length 2, with (sigma0, Psigma) specifying that P(σ > σ_0) = p_σ, where σ is the marginal standard deviation of the field. If Psigma is NA, then sigma0 is used as a fixed range value. Default is c(1, 0.01).

prior.pccor

A vector of length 2, with (cor, Pcor) specifying that P(cor > cor_0) = p_cor, where cor is the temporal autocorrelation. Default is c(0.7, 0.7).

...

Arguments passed to inla

sPoly

A SpatialPolygons or SpatialPolygonsDataFrame

Value

A list including an inla object, aninla.stack object, an inla.mesh.2d object for the spatial component of the model and an inla.mesh.1d object for the temporal component of the model.


ReseauBiodiversiteQuebec/mapSpecies documentation built on Dec. 18, 2021, 9:57 a.m.