R/gof.R

Defines functions gof gof.default

Documented in gof gof.default gof.default

gof.default <- function(object)
  stop("No applicable method for objects of class ", class(object))

gof <- function(object){
  D <- deviance(object)
  X2  <- sum(residuals(object, type = "pearson")^2)
  structure(list(D = D, X2 = X2, df = df.residual(object)), class = "gof")
  }

Try the aods3 package in your browser

Any scripts or data that you put into this service are public.

aods3 documentation built on July 8, 2022, 5:06 p.m.