[R] lme:correlationstructure AR1 and random factor

yvonne fabian yvo.fabian at gmx.de
Tue Mar 29 22:41:55 CEST 2011


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.



More information about the R-help mailing list