R: lme, cannot evaluate groups for desired levels on 'newdata'
问题 I'm running an lme -model from the package nlme on R v.3.0.2. I'm trying to extract the model estimates with predict.lme , but it returns an error. Here's the code to replicate the error: my.model = lme(fixed = Maxi ~ Time*Origin, random = ~ 1 |Genotype, method = "REML", weights=varPower(), data=dd) new.my.model <- data.frame(Origin = c("Ka", "Ka", "La", "La"), Time = c("mor", "eve", "mor", "eve")) predict(my.model, new.my.model, level = 0:1) #Error in predict.lme(my.model, new.my.model,