Returns a summary list for objects of class cond
.
# S3 method for cond
summary(object, alpha = 0.05, test = NULL, all = FALSE, coef = TRUE,
int = ifelse( (is.null(test) || all), TRUE, FALSE),
digits = NULL, …)
a cond
object. This is assumed to be the result returned
by the cond.glm
function.
vector of levels for confidence intervals. The default is 5%.
vector of values of the parameter of interest one wants to test
for. If NULL
, no test is performed. The default is
NULL
.
logical value; if TRUE
, all the information stored in the
summary.cond
object is printed, else only a subset of it.
The default is FALSE
.
logical value; if TRUE
, the unconditional and conditional
parameter estimates are printed. The default is TRUE
.
logical value; if TRUE
confidence intervals are printed.
The default is TRUE
.
number of significant digits to be printed. The default depends
on the value of digits
set by options
.
absorbs any additional argument.
A list is returned with the following components.
a \(2\times 2\) matrix containing the unconditional and approximate conditional MLEs and their standard errors.
a matrix containing, for each level given in alpha
, the
upper and lower confidence bounds derived from several first- and
higher order test statistics. One-sided and two-sided confidence
intervals are considered. See cond.object
for
details on the test statistics.
a list with two elements. The first (stats
) contains, for
each value given in test
, the values and tail probabilities
of several first- and higher order test statistics. See
cond.object
for details on the test statistics.The
second element of the list (qTerm
) contains for each tested
hypothesis the correction term used in the higher order solutions.
the function call that created the cond
object.
the model formula.
the variance function.
the covariate occurring in the model formula whose coefficient represents the parameter of interest.
vector of levels used to compute the confidence intervals.
values for the parameter of interest that have been tested for.
information and nuisance parameters aspects; see
cond.object
for details.
number of output points that have been calculated exactly.
logical value; if TRUE
, all the information stored in the
summary.cond
object is printed.
logical value; if TRUE
, the unconditional and conditional
parameter estimates are printed.
logical value; if TRUE
, confidence intervals are printed.
a logical value indicating whether there are any nuisance
parameters. If FALSE
there are none.
number of significant digits to be printed.
This function is a method for the generic function summary()
for objects of class cond
. It can be invoked by calling
summary
or directly summary.cond
for an object of the
appropriate class.
# NOT RUN {
## Crying Babies Data
data(babies)
babies.glm <- glm(formula = cbind(r1, r2) ~ day + lull - 1,
family = binomial, data = babies)
babies.cond <- cond(object = babies.glm, offset = lullyes)
summary(babies.cond, test = 0, coef = FALSE)
# }
Run the code above in your browser using DataLab