| copsd3 {VGAM} | R 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
|
doffset |
Same as |
... |
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
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)
[Package VGAM version 1.1-14 Index]