plotn1n2simmatrix: Mark-Recapture Sample Size Via Sim, Both Samples
Description
Produces a plot of the simulated relative accuracy of a
mark-recapture abundance estimator for various sample sizes in both events. This may be a
useful exploration, but it is possible that plotn2sim may be more informative.
Usage
plotn1n2simmatrix(
N,
conf = 0.95,
nrange = NULL,
nstep = NULL,
estimator = "Chapman",
nsim = 10000,
...
)
Arguments
N
The best guess at true abundance
conf
The desired level of confidence to investigate.
Defaults to 0.95.
nrange
A two-element vector describing the range of sample sizes to
investigate. If the default (NULL
) is accepted, an appropriate
value will be chosen.
nstep
The step size between sample sizes to investigate. If the
default (NULL
) is accepted, an appropriate value will be chosen.
estimator
The abundance estimator to use. Allowed values are
"Chapman"
, "Petersen"
, and "Bailey"
. Defaults to
"Chapman"
.
nsim
The number of replicates. Defaults to 10000.
...
Additional plotting parameters
Examples
Run this code# NOT RUN {
plotn1n2simmatrix(N=10000, nsim=2000)
# }
Run the code above in your browser using DataLab