fitstats: Functions to return fit statistics

View source: R/fitstats_assessment_of_fit.R

fitstatsR Documentation

Functions to return fit statistics

Description

fitstats produces sum of squared errors, Chi-squared statistic and Freeman-Tukey statistic used in parboot GOF tests throughout the book, starting with AHM1 - 7.5.4. fitstats2 produces the above, plus corresponding statistics based on total detection frequency across replicate surveys; see AHM1 - 7.9.3.

Usage

fitstats(fm)

fitstats2(fm)

Arguments

fm

A fitted model object as returned by unmarked.

Value

For fitstats, a named vector of length 3 with sum of squared errors (SSE), Chi-squared statistic (Chisq) and Freeman-Tukey (freemanTukey).

For fitstats2, a named vector of length 6 with the same information plus corresponding statistics based on numbers(SSE.n), (Chisq.n) and (freemanTukey.n).

Author(s)

Marc Kéry & Andy Royle

References

Kéry & Royle (2016) Applied Hierarchical Modeling in Ecology AHM1 - 7.5.4 and 7.9.3.


AHMbook documentation built on Sept. 12, 2024, 6:37 a.m.