Learn R Programming

VGAM (version 1.1-14)

copsd3: Centre of the Parameter Space Distance for GLMs

Description

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, ...)
# S3 method for default
copsd3(object, ...)
# S3 method for glm
copsd3(object, doffset = 0.1, ...)

Value

See copsd.

Arguments

object

a fitted GLM, created by glm.

doffset

Same as copsd.

...

additional argument(s) for methods.

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

cops, coef, wsdm, fbeetle.

Examples

Run this code
if (FALSE) {
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)
}

Run the code above in your browser using DataLab