copsd3: Centre of the Parameter Space Distance for GLMs

View source: R/hdeff.R

copsd3R Documentation

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, ...)
## 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.

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.

Value

See copsd.

See Also

cops, coef, wsdm, fbeetle.

Examples

## Not run: 
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)

## End(Not run)

VGAM documentation built on Dec. 4, 2025, 1:07 a.m.