Learn R Programming

BBRecapture (version 0.2)

list.historylabels: List all the observable partial capture histories

Description

This function returns a list of all the observable partial capture histories which can be recorded in a discrete-time capture-recapture setting with \(t\) consecutive trapping occasions. The observable partial capture histories are \(2^t-1\)

Usage

list.historylabels(t,t.max=15)

Arguments

t

a positive integer representing the total number of trapping occasions

t.max

a positive integer representing upper bound on the total number of trapping occasions allowed.

Value

A list of all the observable partial capture histories which can be recorded in a discrete-time capture-recapture setting with t consecutive trapping occasions. If t>t.max the function stops with an error message.

Details

For obvious computing/memory reasons t is not allowed to be arbitrarily large. With t.max=15 there are 32767 possible partial capture histories. If t>t.max the function stops with an error message.

See Also

partition.ch

Examples

Run this code
# NOT RUN {
list.historylabels(t=4)

# }

Run the code above in your browser using DataLab