sim.SCR: Simulate SCR data

sim.SCRR Documentation

Simulate SCR data

Description

This function will simulate single session SCR encounter history data.

Usage

sim.SCR(N = 100, K = 20, alpha0 = -2.5, sigma = 0.5, discard0 = TRUE, array3d = FALSE, ssRes = 0.5)

Arguments

N

Total number of individuals in the study area.

K

Number of occasions.

alpha0

The baseline encounter probability.

sigma

The parameters describing the spatial scale of detection.

discard0

If TRUE, indivuduals with "all-zero" encounter histtories will be removed. If FALSE, the encounter histroy data will contain th e"all-zero" encounter histories and therefore have N rows.

array3d

The encounter history data can be returned as either an individual-bytrap-by-occasion 3-D array (array3d=TRUE), or a "flat" individual-by-trap encounter frequency matrix.

ssRes

The resolution of the state-space (pixel/grid size). This value is the length of the side of a square pixel.

Details

This function is called by the more flexible sim.SCR.ms function that returns object formatted for direct model fitting.

Author(s)

Chris Sutherland csutherland@umass.edu

Examples

scr.data <- sim.SCR(N = 100, K = 20, alpha0 = -2.5, sigma = 0.5, discard0 = TRUE, array3d = FALSE, ssRes = 0.5)

jaroyle/oSCR documentation built on Sept. 23, 2023, 12:46 p.m.