Skip to contents

sim.env allows to simulate environmental fields.

Usage

sim.env(
  grid,
  nt = 9,
  rho_t = 0.85,
  sd = 2,
  h = 0.2,
  nu = 2,
  rho_s = NULL,
  delta = 0.1,
  zrange = c(20, 28),
  matern = TRUE,
  diagonal = FALSE,
  verbose = TRUE
)

Arguments

grid

a grid.

nt

number of environmental fields. Default: 1.

rho_t

autocorrelation coefficient of temporal autocorrelation for environmental fields. Default: 0.85.

sd

standard deviation for simulation of environmental fields. Default: 2.

h

parameter of the matern covariance structure. Default: 0.2.

nu

parameter of the matern covariance structure. Default: 2.

rho_s

parameter of the matern covariance structure. Default: 0.8.

delta

parameter of the matern covariance structure. Default: 0.1.

zrange

range of the environmental covariate. Default: c(20, 28).

matern

logical; if TRUE (default), matern covariance structure is used for simulation of environmental fields.

diagonal

logical; if TRUE, diagonal neighbours are considered in neighbouring structure. Default: FALSE.

verbose

If TRUE, print information to console. Default: TRUE.

Value

A list with simulated environmental fields.

Examples

env <- sim.env()
#> Error in sim.env(): argument "grid" is missing, with no default