test_disp: Test of dispersion

Description Usage Arguments Value Author(s) Source Examples

Description

test_disp tests the significativity of the dispersion in a Poisson or logistic model.

Usage

1

Arguments

m

a glm object with family equal to "poisson" of "binomial".

Value

returns a named vector of 4 components: dispersion parameter ("phi"), statistic ("stat"), number of degrees of freedom ("df") and corresponding p value from the test ("p").

Author(s)

Marc Choisy

Source

method suggested in the book "R in action" by Kabacoff (2011).

Examples

1
2
m <- glm(Species=="versicolor" ~ Sepal.Width,family=binomial(), data=iris)
test_disp(m)

choisy/marc documentation built on May 13, 2019, 5:31 p.m.