i want to fit a mixed model but with variance structure.
I create my data frame
DTF <- data.frame(Y = rnorm(7*4, 0, 1),
TIME = rep(1:7, 4),
GROUP = c(rep(1,7), rep(2,7), rep(3,7), rep(4,7)),
X = rep(rnorm(7, 20, 5), 4))
and than i run this command
model <- lmer(Y ~ TIME:GROUP + X + (1 | GROUP), DTF, REML = FALSE,
varWeights(varFixed(~ TIME)))
and i have
Error in lmer(...): 'control' is not a list; use lmerControl()
I don't know what i have to change. Thanks for your help!