Learn R Programming

marcher (version 0.0-2)

test_rangeshift: Range shift hypothesis tests

Description

Three tests for three hypotheses to test on fitted range shifts: Was the range shift significant? Did an animal that performed two consecutive seasonal migrations return to the same location it began? Was there a stopover during a migration?

Usage

test_rangeshift(FIT, verbose = TRUE)

test_return(FIT, verbose = TRUE)

test_stopover(FIT, verbose = TRUE)

Arguments

FIT
a fitted range shift (output of estimate_shift)
verbose
whether to print verbose message

Value

Outputs a summary of the test results and returns a list of test results including:
  • aic.table an AIC table comparing models
  • lrt a likelihood ratio test statistic
  • df degrees of freedom for the l.r.t.
  • p.value a p.value for the l.r.t.

Functions

  • test_rangeshift: Compare a two range fitted model to a null model of no range shift.
  • test_return: Compares a three range fitted model in which the first and third ranges have the same centroid against a model where the first and third centroid are different.
  • test_stopover: Compare a three range model with an apparent stopover (shorter intermediate range), and see if a more parsimonious model excludes the stopover.