| cops3 | R Documentation |
Computes the COPS for one or more parameters in a
fitted generalized linear model.
The object has "glm".
The functions comprise an S3 generic and method.
cops3(object, ...)
## Default S3 method:
cops3(object, ...)
## S3 method for class 'glm'
cops3(object, level = 0.999,
beta.range = confint.default(object, level = level),
muxrange = 4, iter.max = 8, tol = 1e-5,
subset = NULL, do1 = TRUE, ...)
object |
a fitted GLM, created by
|
level, beta.range |
Same as |
muxrange, iter.max |
Same as |
tol, subset, do1 |
Same as |
... |
additional argument(s) for methods. |
While VGAM is written in S4, this
cops3 is an S3 generic function
so that the COPS can be computed for
glm models.
Since vglm and
glm have different
convergence criteria, computing the COPS for
effectively the same model may differ.
Note that not all GLMs have a finite COPS,
for example,
a poisson regression.
See copsvglm.
copsvglm,
confint.default,
wsdm,
fbeetle.
## Not run:
fit1 <- glm(cbind(dead, n-dead) ~ logdose, binomial, fbeetle, tr = TRUE)
coef(fit1)
cops3(fit1)
fit2 <- vglm(cbind(dead, n-dead) ~ logdose, binomialff, fbeetle, tr = TRUE)
coef(fit2)
cops(fit2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.