View source: R/renewal_methods.R
chiSq_gof | R Documentation |
Carry out the formal chi-square goodness-of-fit test described by Cameron (2013).
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, ...)
object |
an object from class |
breaks |
integer values at which the breaks shoudl happen. The function
will compute the observed frequencies in the intervals |
... |
currently not used |
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).
data.frame
cameron2013regressionCountr
chiSq_pearson
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.