plotn1n2simmatrix: Mark-Recapture Sample Size Via Sim, Both Samples

Description Usage Arguments Note Author(s) See Also Examples

View source: R/n2.R

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

1
2
3
4
5
6
7
8
9
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

Note

Any Petersen-type estimator (such as this) depends on a set of assumptions:

Author(s)

Matt Tyers

See Also

n2RR, plotn2sim

Examples

1
plotn1n2simmatrix(N=10000, nsim=2000)

mbtyers/recapr documentation built on Sept. 13, 2021, 11:54 a.m.