rgamma
which can be used in conjuction with simCapture
to simulate capture data where the rates are drawn from a gamma distribution
drawCapRatesGamma(shape, rate)
simCapture
simCapture
, drawCapRatesUnif
, drawCapRatesExp
, drawCapRatesBeta
, drawCapRatesGeom
## Specify the distribution
dist <- drawCapRatesGamma(shape=0.5, rate=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