
The function returns a chi-squared test of goodness of fit for models of class glm
, aodml
or aodql
.
gof(object)
gof.default(object)
# S3 method for gof
print(x, ..., digits = max(3, getOption("digits") - 3))
An object of class gof
, printed with print.gof
.
An object of class glm
, aodml
or aodquasi
.
An object of class gof
.
A numerical scalar indicating the number of digits to be printed after the decimal place.
Further arguments passed to print
.
Function gof
calculates the deviance
Assuming that the data length is
Agresti, A. Categorical data analysis. Wiley, 1990.
data(orob2)
fm1 <- glm(cbind(m, n - m) ~ seed, data = orob2, family = binomial)
fm2 <- aodml(cbind(m, n - m) ~ seed, data = orob2, family = "bb")
gof(fm1)
gof(fm2)
Run the code above in your browser using DataLab