Skip to content
Prev 1276 / 20628 Next

bug?

Antonio.Gasparrini at lshtm.ac.uk wrote:
It looks like you already posted this to r-help and got some answers
(i.e., this is a problem with aod changing the S4 method for "AIC").

  For convenience, I sometimes use functions like this

load_lme4 <- function() {
  try(detach("package:nlme"),silent=TRUE)
  library(lme4)
}

load_nlme <- function() {
  try(detach("package:lme4"),silent=TRUE)
  library(nlme)
}

  to switch back and forth between lme4 and nlme (which also
don't play all that nicely with each other) -- you could do
the same sort of thing if you are going to use lme4 and aod
in the same R session.

  Ben Bolker