getdensityClosedSCR: Calculate population density estimates

Description Usage Arguments Value Author(s) See Also Examples

View source: R/ClosedSCR.R

Description

This function calculates posterior population density estimates from multimarkClosedSCR output as D = N/A, where D is density, N is abundance, and A is the area of available habitat within the study area.

Usage

1

Arguments

out

List of output returned by multimarkClosedSCR.

Value

An object of class mcmc.list containing the following:

D

Posterior samples for density.

Author(s)

Brett T. McClintock

See Also

multimarkClosedSCR

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# 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.dot <- multimarkClosedSCR(Enc.Mat,trapCoords,studyArea,mod.p=~1)
  
#Calculate capture and recapture probabilities
D <- getdensityClosedSCR(example.dot)
summary(D)

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