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

View source: R/n2.R

plotn1n2simmatrixR Documentation

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

Note

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

  • The population is closed; that is, that there are no births, deaths, immigration, or emigration between sampling events

  • All individuals have the same probability of capture in one of the two events, or complete mixing occurs between events

  • Marking in the first event does not affect probability of recapture in the second event

  • Individuals do not lose marks between events

  • All marks will be reported in the second event

Author(s)

Matt Tyers

See Also

n2RR, plotn2sim

Examples

plotn1n2simmatrix(N=10000, nsim=2000)

mbtyers/recapr documentation built on Dec. 17, 2024, 7:24 p.m.