chat: Find overdispersion parameter

Description Usage Arguments Details Value Creation notes

View source: R/glmHelpers.R

Description

chat() calculates the overdispersion parameter \hat{c}.

Usage

1
chat(object, output = TRUE)

Arguments

object

Model object that your can be used with residuals() and contains the vector $df.residual. See Details.

output

logical of whether to print output to the console

Details

I know that this can work on glm, MASS::glm.nb, and pscl::zeroinfl models.

Value

Returns a vector with of size 2 with the \hat{c} value and the associated p-value from the χ^2 testing that the null that \hat{c} = 1.

Creation notes

First created on 2019-Nov-14 in Homework_4.Rmd while working on homework for FNR647.


jacpete/jpfxns2 documentation built on Nov. 22, 2019, 3:33 a.m.