Learn R Programming

lgcp (version 1.8)

lgcpSimMultitypeSpatialCovariates: lgcpSimMultitypeSpatialCovariates function

Description

A function to Simulate multivariate point process models

Usage

lgcpSimMultitypeSpatialCovariates(
  formulaList,
  owin,
  regionalcovariates,
  pixelcovariates,
  betaList,
  spatial.offsetList = NULL,
  cellwidth,
  model.parameters,
  spatial.covmodel = "exponential",
  covpars = c(),
  ext = 2,
  plot = FALSE,
  inclusion = "touching"
)

Arguments

formulaList

a list of formulae objetcs

owin

a spatstat owin object on which to simulate the data

regionalcovariates

a SpatialPolygonsDataFrame object

pixelcovariates

a SpatialPixelsDataFrame object

betaList

list of beta parameters

spatial.offsetList

list of poisson offsets

cellwidth

cellwidth

model.parameters

model parameters, a list eg list(sigma=1,phi=0.2)

spatial.covmodel

the choice of spatial covariance model, can be anything from the RandomFields covariance function, CovariacenFct.

covpars

additional covariance parameters, for the chosen model, optional.

ext

number of times to extend the simulation window

plot

whether to plot the results automatically

inclusion

criterion for cells being included into observation window. Either 'touching' or 'centroid'. The former, the default, includes all cells that touch the observation window, the latter includes all cells whose centroids are inside the observation window.

Value

a marked ppp object, the simulated data