simSCR2DNA: Simulate data from a SCR study with DNA collected from scat...

View source: R/simSCR2DNA.R

simSCR2DNAR Documentation

Simulate data from a SCR study with DNA collected from scat and hair snares

Description

This function simulates data from a joint hair snare and scat collection SCR study. The extent of the state space is controlled by "buff", which buffers the minimum and maximum X and Y extents. Therefore, it probably only makes sense for square or rectangular grids. Functionality for user-provided polygonal state spaces will be added in the future.

Usage

simSCR2DNA(N = 120, lam01 = 0.2, lam01b = 0, lam02 = 0.2,
  sigma = c(0.5, 0.5), K1 = 10, K2 = 10, X1 = X1, X2 = X2,
  buff = 2)

Arguments

N

a vector indicating the number of individuals to simulate

lam01

the hair snare detection function hazard rate

lam02

the scat detection function hazard rate

sigma

a vector of spatial scale parameters for the hair snare and scat detection functions (in that order)

K1

the number of hair snare capture occasions

K2

the number of scat capture occasions

X1

the K1 x 2 matrix of hair snare locations

X2

the K2 x 2 matrix of scat collection locations (descretized transects)

buff

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

lam0b

the hair snare detection function hazard rate after capture at a trap

Value

a list containing the capture histories (y1 for hair snares, y2 for scat collection), activity centers, trap objects, and several other data objects and summaries.

Author(s)

Ben Augustine


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