Skip to content

problem with using R nlme function

2 messages · Zhiwei Tang, Ben Bolker

#
On 06/29/2011 11:57 AM, Zhiwei Tang wrote:
I believe you're required to have the correlation structured within
the same units as the overall random effect, so

lme(fixed=y~x,random=~1|site/fishid,
  correlation = corCompSymm(form =~1|site/fishid),
   na.action=na.omit, method="REML")

  But: doesn't compound symmetry at the fishid level mean the
correlation statement would then be redundant?

  I don't quite understand the distinction between "random" and
"repeated" in the SAS code (sorry ...)

  Ben Bolker