getprobsClosed: Calculate posterior capture and recapture probabilities

Description Usage Arguments Value Author(s) See Also Examples

View source: R/Closed.R

Description

This function calculates posterior capture (p) and recapture (c) probabilities for each sampling occasion from multimarkClosed output.

Usage

1
getprobsClosed(out, link = "logit")

Arguments

out

List of output returned by multimarkClosed.

link

Link function for detection probability. Must be "logit" or "probit". Note that multimarkClosed is currently implemented for the logit link only.

Value

An object of class mcmc.list containing the following:

p

Posterior samples for capture probability (p) for each sampling occasion.

c

Posterior samples for recapture probability (c) for each sampling occasion.

Author(s)

Brett T. McClintock

See Also

multimarkClosed

Examples

1
2
3
4
5
6
7
8
9
# 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 bobcat data with constant detection probability (i.e., mod.p=~c)
bobcat.c <- multimarkClosed(bobcat,mod.p=~c)
  
#Calculate capture and recapture probabilities
pc <- getprobsClosed(bobcat.c)
summary(pc)

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