Dear helpers, I tried these models to run in the package nlme, but allways got the same error message...
I have a correlation in 5 sessions within a field (n=12) with ten traps in one field. res2a <- lme(response~x+y+z+treatment),correlation = corARMA(form = ~ session|trapfield, p = 1, q = 0), random=~1|field, na.action=na.omit, data=plates, method="ML") res2a <- lme(response~x+y+z+treatment,correlation = corCAR1(form = ~ session|trapfield), random=~1|field, na.action=na.omit, data=plates, method="ML") Error: Incompatible formulas for groups in "random" and "correlation" What is the problem? thanks a lot! Yvonne -- View this message in context: http://r.789695.n4.nabble.com/lme-correlationstructure-AR1-and-random-factor-tp3416248p3416248.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.