simSCRtf: Simulate data from a SCR study and simulate a random trap...

View source: R/simSCRtf.R

simSCRtfR Documentation

Simulate data from a SCR study and simulate a random trap failure process

Description

See the simSCR help file for a description of the capture process. The trap failure process operates like this: traps fail with probabilty failprob and remain disabled for faildur occasions. This code does not keep up with multiple cameras at a site like the 2side simulation code. A trap is either on or off.

Usage

simSCRtf(N = 120, lam0 = 0.2, lam0b = 0, sigma = 0.7, K = 10,
  X = X, buff = 3, failrate = 0.05, faildur = 2,
  obstype = "bernoulli")

Arguments

N

a vector indicating the number of individuals to simulate

lam0

the detection function hazard rate

sigma

the spatial scale parameter

K

the number of capture occasions

X

the K x 2 matrix of trap locations

buff

the distance to buffer the trapping array in the X and Y dimensions to produce the state space

faildur

the number of occasions a trap remains inoperable

obstype

observation type, either "bernoulli" or "poisson"

failprob

the probability a trap will fail on each occasion

Value

a list containing the capture history, activity centers, trap object, and several other data objects and summaries.

Author(s)

Ben Augustine


benaug/SPIM documentation built on April 28, 2024, 7:27 a.m.