Description Usage Arguments Value Note Author(s) References See Also Examples
Conducts three chi-squared tests for the consistency of the Petersen-type abundance estimator. These tests explore evidence against the second traditional assumption of the Petersen mark-recapture experiment: that equal capture probabilities exist in either the first or second sampling event, or that complete mixing occurs between events.
Typically, if any of these test p-values is greater than the significance level, use of a Petersen-type estimator is considered justified. If all three tests give p-values below the significance level and no movement occurs between strata (and strata are the same between events), a stratified estimator may be used. If all three tests give p-values below the significance level and some movement between strata occurs, a partially stratified (Darroch-type) estimator must be used, such as NDarroch.
This function assumes stratification in both sampling events, and in different ways (by time, area, etc.) If stratification was the same in both events such that individuals could not move from one strata to another (such as by size or gender), use of strattest is recommended.
1 2 3 4 5 6 7 8 | consistencytest(
n1,
n2,
m2strata1 = NULL,
m2strata2 = NULL,
stratamat = NULL,
...
)
|
n1 |
A vector of the total sample sizes in the first event, by
strata. For example, setting |
n2 |
A vector of the total sample sizes in the second event, by strata. |
m2strata1 |
A vector of the first-event stratum membership of each
recaptured individual. Only values |
m2strata2 |
A vector of the second-event stratum membership of each
recaptured individual. Only values |
stratamat |
A matrix specifying the number of recaptures in each
combination of event 1 and event 2 strata, with rows corresponding to event
1 strata and columns corresponding to event 2 strata. May be used instead
of |
... |
Additional arguments for chisq.test |
A list of class "recapr_consistencytest"
with the following components:
test1_tab
The contingency table used for the first test
test1_Xsqd
The chi-squared test statistic in the first test
test1_df
The associated degrees of freedom in the first test
test1_pval
The p-value returned from the first test
test2_tab
The contingency table used for the second test
test2_Xsqd
The chi-squared test statistic in the second test
test2_df
The associated degrees of freedom in the second test
test2_pval
The p-value returned from the second test
test3_tab
The contingency table used for the third test
test3_Xsqd
The chi-squared test statistic in the third test
test3_df
The associated degrees of freedom in the third test
test3_pval
The p-value returned from the third test
Naming conventions for the second and third tests are taken from SPAS (see reference)
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
Matt Tyers
Stratified Population Analysis System (Arnason, A.N., C.W. Kirby, C.J. Schwarz and J.R. Irvine. 1996. Computer Analysis of Data from Stratified Mark-Recovery Experiments for Estimation of Salmon Escapements and Other Populations, Canadian Technical Report of Fisheries and Aquatic Sciences 2106).
strattest, NDarroch
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.