getprobsClosedSCR: Calculate posterior capture and recapture probabilities

Description Usage Arguments Value Author(s) See Also Examples

View source: R/ClosedSCR.R

Description

This function calculates posterior spatial capture (p) and recapture (c) probabilities (at zero distance from an activity center) for each sampling occasion from multimarkClosedSCR output.

Usage

1
getprobsClosedSCR(out, link = "cloglog")

Arguments

out

List of output returned by multimarkClosedSCR.

link

Link function for detection probability. Must be "cloglog". Note that multimarkClosedSCR is currently implemented for the cloglog link only.

Value

An object of class mcmc.list containing the following:

p

Posterior samples for capture probability (p) for each sampling occasion (first index) and trap (second index).

c

Posterior samples for recapture probability (c) for each sampling occasion (first index) and trap (second index).

Author(s)

Brett T. McClintock

See Also

multimarkClosedSCR

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# This example is excluded from testing to reduce package check time
# Example uses unrealistically low values for nchain, iter, and burnin

#Run behavior model for simulated data with constant detection probability (i.e., mod.p=~c)
sim.data<-simdataClosedSCR()
Enc.Mat<-sim.data$Enc.Mat
trapCoords<-sim.data$spatialInputs$trapCoords
studyArea<-sim.data$spatialInputs$studyArea
example.c <- multimarkClosedSCR(Enc.Mat,trapCoords,studyArea,mod.p=~c,
                                iter=1000,adapt=500,burnin=500)
  
#Calculate capture and recapture probabilities
pc <- getprobsClosedSCR(example.c)
summary(pc)

multimark documentation built on May 1, 2019, 7:05 p.m.