fitstats {AHMbook} | R 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*version 0.2.9 Index]