sim.points: Simulate a point process from an enmtools.model object

View source: R/sim.points.R

sim.pointsR Documentation

Simulate a point process from an enmtools.model object

Description

Function that takes an enmtools.model object and simulates points from it using a point process.

Usage

sim.points(
  object,
  n.points = 1000,
  seed = NA,
  sample.type = "ppp",
  replace = FALSE,
  threshold = NA,
  ...
)

Arguments

object

entools.model object to simulate from

n.points

approximate number of points to simulate. You may get small number fewer or greater. If you need an exact number of points, generate too many, then drop the extra ones.

seed

optional seed for the random number generator

sample.type

method for sampling occurrence points. Default is "ppp", which is a poisson point process. Also accepts "binomial" for treating suitabilities as binomial trials, "thresh.pa" for sampling with equal probability every grid cell above a certain threshold value, and "thresh.con" for sampling in proportion to suitability above a certain threshold value.

replace

whether to sample with replacement.

threshold

a threshold suitability below which probability of sampling drops to zero. Used for "thresh.pa" and "thresh.con" sampling.

...

additional parameters, not currently used but included for S3 compatability

Value

A data frame of simulated points from the enmtools.model object


ENMTools documentation built on April 11, 2023, 6:09 p.m.