Produces a plot of the simulated relative accuracy of a mark-recapture abundance estimator for various sample sizes. This may be a better representation of the sample size - accuracy relationship than that provided by n2RR.
plotn2sim(
N,
n1,
conf = c(0.99, 0.95, 0.85, 0.8, 0.75),
n2range = NULL,
n2step = NULL,
estimator = "Chapman",
nsim = 10000,
accrange = 1,
...
)
The best guess at true abundance
The size of the first (or second) sampling event
A vector of the desired levels of confidence to investigate.
Allowed values are any of c(0.99,0.95,0.85,0.8,0.75)
. Defaults to
all of c(0.99,0.95,0.85,0.8,0.75)
.
A two-element vector describing the range of sample sizes to
investigate. If the default (NULL
) is accepted, an appropriate
value will be chosen.
The step size between sample sizes to investigate. If the
default (NULL
) is accepted, an appropriate value will be chosen.
The abundance estimator to use. Allowed values are
"Chapman"
, "Petersen"
, and "Bailey"
. Defaults to
"Chapman"
.
The number of replicates. Defaults to 10000.
The maximum level of relative accuracy for plotting. Defaults to 1.
Additional plotting parameters
# NOT RUN {
plotn2sim(N=1000, n1=100)
# }
Run the code above in your browser using DataLab