Compute various deterministic summaries for scenarios generated by make.scenarios
scenarioSummary(scenarios, trapset, maskset, xsigma = 4, nx = 64, CF = 1.0,
costing = FALSE, ..., ncores = 1)
A dataframe including the first 8 columns from scenarios and the computed columns --
expected number of individuals
expected number of recaptures
expected number of movement recaptures
expected number of individuals detected at two or more sites
effective sampling area (ha)
rule-of-thumb correction factor
rule-of-thumb relative standard error of density estimate
rotRSE with adjustment for fixed N in region defined by mask (i.e. Binomial \(n\) rather than Poisson \(n\))
number of detectors in each array
array spacing in sigma units
largest dimension of array in sigma units
expected proportion of detectors at which detection occurs (trap success)
travel cost
cost of each repeated array
fixed cost per detector
cost per detector per visit
cost per detection
summed costs
median number of detectors per 95% home range
overlap index \(k = \sigma \sqrt D / 100\) from secr kfn
Costings (the last 6 columns) are omitted if costing = FALSE
.
dataframe of simulation scenarios
secr traps object or a list of traps objects
secr mask object or a list of mask objects (optional)
numeric buffer width as multiple of sigma (alternative to maskset)
integer number of cells in mask in x direction (alternative to maskset)
numeric correction factor for rule-of-thumb RSE (see minnrRSE
)
logical; if TRUE then costings will be appended
arguments passed to costing
integer number of cores for parallel processing
Not all scenarios from make.scenarios()
are suitable. Grouped (multi-line) scenarios are excluded. Hazard detection functions are preferred (`HHN', `HHR', `HEX', `HAN', `HCG'). `HN', `HR' and `EX' are converted approximately to `HHN', `HHR' and `HEX' respectively, with a warning; other functions are rejected.
CF
may be a vector of values that is recycled across the components of trapset
. The correction factor is a multiplier applied after all other calculations.
The approximate RSE(D-hat) is rotRSE = CF/ sqrt(min(E(n), E(r))). This assumes n is Poisson-distributed. For binomial n an ad hoc adjustment is rotRSEB = sqrt(rotRSE^2 - 1 / (D x A)) where A is the mask area.
The default ncores = 1
(new in 2.7.0) is usually faster than setting ncores>1 because of the overheads in setting up a parallel cluster.
The ... argument is for inputs to costing
, including unitcost
(required) and routelength (optional).
make.scenarios
,
Enrm
,
costing
,
minnrRSE
scen <- make.scenarios(D = c(5,10), sigma = 25, lambda0 = 0.2, detectfn = 'HHN')
grid <- make.grid(6,6, detector = 'multi')
scenarioSummary(scen, list(grid), costing = TRUE, unitcost = list(perkm = 10))
Run the code above in your browser using DataLab