Skip to content

LD50 and SE in GLMM (lmer)

3 messages · Linda Bürgi, Bill Pikounis

3 days later
#
Sorry for the delay in response. I had a somewhat similar need
recently with the difference that I used a logit link for a bioassay.
The design had different dose-response "replicates" that I modeled as
"blocks". It looks like you are concentrating on estimation of fixed
effects and thus the population / marginal LD50 estimate. If so, then
there is a function called dose.p in the MASS package, courtesy of
Venables and Ripley, which is used in the context of an example on 190
- 194 of the 4th edition of their book (2002), 4th ediiion, that I
think would be very helpful to study. The example code can also be
found in the ch07.R file in the scripts sub-directory/folder of the
MASS package directory/folder. The example illustrates the use of GLM
with a logit link. To adapt it for use with a GLMM, I came up with the
following, which is nearly identical to how dose.p is defined in R
2.10.0

dose.p.glmm <-  function(obj, cf = 1:2, p = 0.5) {
  eta <- obj$family$linkfun(p)
  b <- fixef(obj)[cf]
  x.p <- (eta - b[1L])/b[2L]
  names(x.p) <- paste("p = ", format(p), ":", sep = "")
  pd <- -cbind(1, x.p)/b[2L]
    SE <- sqrt(((pd %*% vcov(obj)[cf, cf]) * pd) %*% c(1, 1))
  res <- structure(x.p, SE = SE, p = p)
  class(res) <- "glm.dose"
  res
}

Essentially only the fixef() call in the 2nd line of the body was
needed to replace the coef() call. Please also note that I used this
for a glmmPQL() call from the MASS package, not lmer().
Unfortunately I don't know offhand, and do not have a reference handy
to check to be sure, so perhaps you can find a local statistician to
help?  I myself  always have a preference to use the logit / logistic
over probit, as they are both symmetric around 0.5 and are often
reported to provide similar results.

Hope that helps,
Bill

###############

Bill Pikounis
Statistician



2010/1/7 Linda B?rgi <patili_buergi at hotmail.com>:
1 day later