GOF: Goodness-of-fit statistic

Description Usage Arguments Value

Description

Given the observed and expected counts in different bins, this function returns the goodness-of-fit statistic

Usage

1
GOF(O_c, E_c, param, bin.tol = 0)

Arguments

O_c

Observed counts in the bins;

E_c

Expected counts in the bins;

bin.tol

If the expected count in one bin is less than bin.tol, we merge this and the next bin together. We continue this process until the counts in every bin is larger than bin.tol.

Value

a list containing the Goodness-of-fit statistic (GOF) and degree of freedom (df).


statdivlab/CatchMore documentation built on May 8, 2019, 8:12 a.m.