Learn R Programming

capwire (version 1.1.4)

drawCapRatesExp: Draw Capture Rates from Exponential Distribution

Description

This function is just a wrapper for rexp which can be used in conjuction with simCapture to simulate capture data where the rates are drawn from an exponential distribution

Usage

drawCapRatesExp(r)

Arguments

r
Rate parameter of an exponenital distirbution

Value

A function which takes the number of capture rates to draw as an argument

Details

This function returns a function which can be used as an argument for simCapture

References

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

simCapture, drawCapRatesUnif, drawCapRatesGamma, drawCapRatesBeta, drawCapRatesGeom

Examples

Run this code
## Specify the distribution

dist <- drawCapRatesExp(r=0.5)

## Simulate a data set with the capture rates drawn from dist

data <- simCapture(n=30, s=100, dist.func=dist)

data

Run the code above in your browser using DataLab