gvif.overglm | R Documentation |
Computes the generalized variance inflation factor (GVIF) for regression models based on the negative binomial, beta-binomial, and random-clumped binomial distributions, which are alternatives to the Poisson and binomial regression models under the presence of overdispersion. The GVIF is aimed to identify collinearity problems.
## S3 method for class 'overglm'
gvif(model, verbose = TRUE, ...)
model |
an object of class overglm. |
verbose |
an (optional) logical switch indicating if should the report of results be printed. As default, |
... |
further arguments passed to or from other methods. |
If the number of degrees of freedom is 1 then the GVIF reduces to the Variance Inflation Factor (VIF).
A matrix with so many rows as effects in the model and the following columns:
GVIF | the values of GVIF, |
df | the number of degrees of freedom, |
GVIF^(1/(2*df)) | the values of GVIF^{1/2 df} , |
Fox J., Monette G. (1992) Generalized collinearity diagnostics, JASA 87, 178–183.
gvif.lm, gvif.glm
###### Example 1: Self diagnozed ear infections in swimmers
data(swimmers)
fit1 <- overglm(infections ~ frequency + location, family="nb1(log)", data=swimmers)
gvif(fit1)
###### Example 2: Article production by graduate students in biochemistry PhD programs
bioChemists <- pscl::bioChemists
fit2 <- overglm(art ~ fem + kid5 + ment, family="nb1(log)", data = bioChemists)
gvif(fit2)
###### Example 3: Agents to stimulate cellular differentiation
data(cellular)
fit3 <- overglm(cbind(cells,200-cells) ~ tnf + ifn, family="bb(logit)", data=cellular)
gvif(fit3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.