Incompatible with MuMIn for mixed models
pbreheny opened this issue · 0 comments
pbreheny commented
Current visreg()
crashes:
library (lme4)
library (visreg)
library (MuMIn)
data (Milk, package = "nlme")
fit <- lmer (protein ~ Diet + Time + (Time | Cow), Milk)
v <- visreg (fit, "Time", by = "Cow", re.form = ~ (Time | Cow), plot = FALSE)
# Error: cannot calculate predictions with both standard errors and random effects
User should be able to turn off se.fit
in this case:
v <- visreg (fit, "Time", by = "Cow", re.form = ~ (Time | Cow), plot = FALSE, se.fit=FALSE)
but visreg()
does not currently allow this (formal argument "se.fit" matched by multiple actual arguments
).