Skip to contents

Computes the COPSD for one or more parameters in a fitted generalized linear model. The object has "glm". The functions comprise an S3 generic and method.

Usage

copsd3(object, ...)
# Default S3 method
copsd3(object, ...)
# S3 method for class 'glm'
copsd3(object, doffset = 0.1, ...)

Arguments

object

a fitted GLM, created by glm.

doffset

Same as copsd.

...

additional argument(s) for methods.

Value

See copsd.

Details

While VGAM is written in S4, this copsd3 is an S3 generic function so that the COPSD can be computed for glm models. Since vglm and glm have different convergence criteria, computing these for effectively the same model may differ.

See also

Examples

if (FALSE) { # \dontrun{
fit1 <- glm(cbind(dead, n-dead) ~ logdose, binomial, fbeetle, tr = TRUE)
coef(fit1)
copsd3(fit1)
fit2 <- vglm(cbind(dead, n-dead) ~ logdose, binomialff, fbeetle, tr = TRUE)
coef(fit2)
copsd(fit2)
} # }