LP_test_equal_recap: Test for equal recapture probability in LP experiment

View source: R/LP_test_equal_recap.R

LP_test_equal_recapR Documentation

Test for equal recapture probability in LP experiment

Description

This function takes the capture histories and stratification variable and computes the test for equal recapture probabilities.

Usage

LP_test_equal_recap(data, strat_var, do.fisher.test = FALSE)

Arguments

data

Data frame containing the variables:

  • cap_hist Capture history (see details below)

  • freq Number of times this capture history was observed

plus any other covariates (e.g. discrete strata and/or continuous covariates) to be used in the model fitting.

strat_var

Variable in the dataframe that serves as a stratification variable for contingency table tests of equal marked fraction or equal recapture probability

do.fisher.test

Should a fisher exact test be done?

Value

List containing the contingency table and the chi-square test and fisher-exact test

Examples


data(data_NorthernPike)
LP_test_equal_recap(data_NorthernPike, "Sex")


Petersen documentation built on April 4, 2025, 3:05 a.m.