chiSq_gof: Formal Chi-square goodness-of-fit test

View source: R/renewal_methods.R

chiSq_gofR Documentation

Formal Chi-square goodness-of-fit test

Description

Carry out the formal chi-square goodness-of-fit test described by Cameron (2013).

Usage

chiSq_gof(object, breaks, ...)

## S3 method for class 'renewal'
chiSq_gof(object, breaks, ...)

## S3 method for class 'negbin'
chiSq_gof(object, breaks, ...)

## S3 method for class 'glm'
chiSq_gof(object, breaks, ...)

Arguments

object

an object from class renewal.

breaks

integer values at which the breaks shoudl happen. The function will compute the observed frequencies in the intervals [breaks[i], breaks[i + 1]).

...

currently not used.

Details

The test is a conditional moment test described in details in Cameron (2013, Section 5.3.4). We compute the asymptotically equivalent outer product of the gradient version which is justified for renewal models (fully parametric + parameters based on MLE).

Value

data.frame

References

\insertRef

cameron2013regressionCountr

See Also

chiSq_pearson


GeoBosh/Countr documentation built on Jan. 26, 2024, 12:16 p.m.