Learn R Programming

capwire (version 1.1.4)

simEcm: Simulate Data Under Equal Capture Model

Description

Simulates capture count data under the assumptions of the Equal Capture Model (ECM), where all individuals are assumed to have an equal probability of being captured

Usage

simEcm(n, s)

Arguments

n
Number of individuals in the population
s
Total number of samples collected

Value

A two-column data frame with the first column specifiying the capture class (i.e. individuals caught i times) and the second column specifying the number of individuals in each class.The data frame can be used as the data argument for any of the model-fitting functions implemented in capwire

References

Miller C. R., P. Joyce and L.P. Waits. 2005. A new method for estimating the size of small populations from genetic mark-recapture data. Molecular Ecology 14:1991-2005.

Pennell M.W., C.R. Stansbury, L.P. Waits and C.R. Miller. submitted. capwire: A R Package for Estimating Population Census Size from Non-Invasive Genetic Sampling

See Also

fitEcm

Examples

Run this code
## Simualte data under the Equal Capture Model

data <- simEcm(n=25, s=100)

## Fit the Equal Capture Model 

ecm <- fitEcm(data=data, max.pop=200)

ecm

Run the code above in your browser using DataLab