brglm(formula, family = binomial, data, weights, subset, na.action,
start = NULL, etastart, mustart, offset,
control.glm = glm.control1(...), model = TRUE, method = "brglm.fit",
pl = FALSE, x = FALSE, y = TRUE, contrasts = NULL,
control.brglm = brglm.control(...), ...)brglm.fit(x, y, weights = rep(1, nobs), start = NULL, etastart = NULL,
mustart = NULL, offset = rep(0, nobs), family = binomial(),
control = glm.control(), control.brglm = brglm.control(),
intercept = TRUE, pl = FALSE)
glm.glm. brglm currently
supports only the "binomial" family with links
"logit", "probit", "cloglog", "cauchit".glm.glm.glm.glm.glm.glm.glm.glm.glm. Only available to
brglm.fit.glm.glm."brglm.fit", which uses either the modified-scores
approach to estimation or maximum penalized likelihood (see
the pl argument below). The standard
method = "brglmglm.glm.glm.method = "brglm.fit". See documentation of
brglm.control for details.brglm returns an object of class "brglm". A
"brglm" object inherits first from "glm" and then from
"lm" and is a list containing the following components:glm.glm.glm.glm.glm.glm.glm.glm.glm.glm.glm (see Details).glm.glm.glm.glm.glm.glm.glm.glm.glm.pl = TRUE they are the
derivatives of the penalized likelihood at the final iteration.method = "brglm.fit".method = "brglm.fit"method = "brglm.fit".ar and at which
contains the values of the additive modifications to the responses
(y) and to the binomial totals (prior.weights) at
the resultant estimates (see modifications for more
information). Only available when method = "brglm.fit".glm.glm.glm.glm.glm.glm.control in the result of
glm.control.brglm argument that was passed to
brglm. Only available when method = "brglm.fit".glm.glm.pl
argument passed to brglm. Only available when method =
"brglm.fit".modificationsadd1, drop1,
anova, etc.) on objects of class
"brglm". Model comparison when estimation is performed using
the modified scores or the penalized likelihood is an on-going
research topic and will be implemented as soon as it is concluded. 2. The use of Akaike's information criterion (AIC) for
model selection when method = "brglm.fit" is
controversial. AIC was developed under the assumptions that (i)
estimation is by maximum likelihood and (ii) that estimation is
carried out in a parametric family of distributions that contains
the method = "brglm.fit". However, since the MLE is
asymptotically unbiased, asymptotically the modified-scores
approach is equivalent to maximum likelihood. A more appropriate
information criterion seems to be Konishi's generalized information
criterion (see Konishi & Kitagawa, 1996, Sections 3.2 and 3.3), which
will be implemented in a future version.
brglm.fit is the workhorse function for fitting the model using
either the bias-reduction method or maximum penalized likelihood. If
method = "glm.fit", usual maximum likelihood is used via
glm.fit.The main iteration of brglm.fit consists of the following
steps:
gethatsandhatvalues).modificationsfor more information).glm.fiton the pseudo data.br.maxit and
br.epsilon arguments in brglm.control).The default value (FALSE) of pl, when method = "brglm.fit",
results in estimates that are free of any $\mathop{\rm
O}(n^{-1})$ terms in the asymptotic expansion of their bias. When
pl = TRUE bias-reduction is again achieved but generally not at
such order of magnitude. In the case of logistic regression the value of
pl is irrelevant since maximum penalized likelihood and the
modified-scores approach coincide for natural exponential families (see
Firth, 1993).
For other language related details see the details section in
glm.
Firth, D. (1992) Generalized linear models and Jeffreys priors: An iterative generalized least-squares approach. In Computational Statistics I, Eds. Y. Dodge and J. Whittaker. Heidelberg: Physica-Verlag.
Firth, D. (1993). Bias reduction of maximum likelihood estimates. Biometrika 80, 27--38. Heinze, G. and Schemper, M. (2002). A solution to the problem of separation in logistic regression. Statistics in Medicine 21, 2409--2419. Konishi, S. and Kitagawa, G. (1996). Generalised information criteria in model selection. Biometrika 83, 875--890. Kosmidis, I. (2007). Bias reduction in exponential family nonlinear models. PhD Thesis, Department of Statistics, University of Warwick.
Kosmidis, I. and Firth, D. (2008). Bias reduction in exponential family nonlinear models. (submitted)
glm, glm.fit## Begin Example
data(lizards)
# Fit the GLM using maximum likelihood
lizards.glm <- brglm(cbind(grahami, opalinus) ~ height + diameter +
light + time, family = binomial(logit), data=lizards,
method = "glm.fit")
# Now the bias-reduced fit:
lizards.brglm <- brglm(cbind(grahami, opalinus) ~ height + diameter +
light + time, family = binomial(logit), data=lizards,
method = "brglm.fit")
lizards.glm
lizards.brglm
# Other links
update(lizards.brglm, family = binomial(probit))
update(lizards.brglm, family = binomial(cloglog))
update(lizards.brglm, family = binomial(cauchit))
# Using penalized maximum likelihood
update(lizards.brglm, family = binomial(probit), pl = TRUE)
update(lizards.brglm, family = binomial(cloglog), pl = TRUE)
update(lizards.brglm, family = binomial(cauchit), pl = TRUE)Run the code above in your browser using DataLab