sim.ns {palm} | R Documentation |
Simulating points from a Neyman-Scott point process
Description
Generates points from a Neyman-Scott point process using parameters provided by the user.
Usage
sim.ns(
pars,
lims,
disp = "gaussian",
child.dist = "pois",
parents = NULL,
child.info = NULL
)
Arguments
pars |
A named vector containing the values of the parameters of the process that generates the points. |
lims |
A matrix or list of matrices with two columns,
corresponding to the upper and lower limits of each dimension,
respectively. If a list, then each matrix provides the limits
for the corresponding pattern in |
disp |
A character string indicating the distribution of
children around their parents. Use |
child.dist |
The distribution of the number of children
generated by a randomly selected parent. For a Poisson
distribution, use |
parents |
An optional matrix containing locations of
parents. If this is provided, then the parameter |
child.info |
A list of further information that is required about the distribution for the number of children generated by parents. See ‘Details’. |
Details
For a list of possible parameter names, see fit.ns.
The "child.info"
argument is required when child.dist
is set to "twocamera"
. It must be a list that comprises (i) a
component named w
, providing the halfwidth of the detection
zone; (ii) a component named b
, providing the halfwidth of
the survey area; (iii) a component named l
, providing the
time lag between cameras (in seconds); and (iv) a component named
tau
, providing the mean dive-cycle duration. See Stevenson,
Borchers, and Fewster (2019) for details.
Value
A list. The first component gives the Cartesian coordinates of the generated points. The second component returns the parent locations. A third component may provide sibling information.
References
Stevenson, B. C., Borchers, D. L., and Fewster, R. M. (2019) Cluster capture-recapture to account for identification uncertainty on aerial surveys of animal populations. Biometrics, 75: 326–336.
Examples
## Simulating from a one-dimensional Thomas process.
data.thomas <- sim.ns(c(D = 10, lambda = 5, sigma = 0.025), lims = rbind(c(0, 1)))
## Simulating from a three-dimensional Matern process.
data.matern <- sim.ns(c(D = 10, lambda = 10, tau = 0.1), disp = "uniform",
lims = rbind(c(0, 1), c(0, 2), c(0, 3)))