generateNCI: Generate NCI over space and time

Description Usage Arguments Value Examples

View source: R/generateNCI.R

Description

Generate NCI over space and time

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
generateNCI(
  grid = 20,
  Nt = 50,
  timestep = 30,
  muNCI = 124,
  sigmaNCI = 26,
  alpha = -1.32,
  beta = 0.003,
  mu = 0.749,
  sigma = 2.651,
  lambda = 0.31,
  d = 3
)

Arguments

grid

int. Number of cells per side of the matrix.

Nt

int. Number of time-steps.

timestep

int. Time-step length in years.

muNCI

double. mu parameter for the normal distribution used for NCI.

sigmaNCI

double. sigma parameter for the normal distribution used for NCI.

alpha

double. Intercept for the Bernoulli distribution determining the risk to have a negative deltaNCI.

beta

double. Slope of previous NCI for the Bernoulli distribution determining the risk to have a negative deltaNCI.

mu

double. mu parameter for the lognormal distribution used for positive deltaNCI.

sigma

double. sigma parameter for the lognormal distribution used for positive deltaNCI.

lambda

double. lambda parameter for the exponential distribution used for negative deltaNCI.

d

int. Spatial auto-correlation size in number of cells.

Value

A data frame with columns Time, X, Y and NCI.

Examples

1

sylvainschmitt/ecoevosimulator documentation built on Nov. 19, 2020, 8:04 a.m.