Skip to content
Prev 8087 / 20628 Next

gls vs lme covariance structures

Hi Charles,

Well you could post a subset of it, or make up some data that is
sharable (whether the data make any sense is not important to us, just
nice to have runable code, for example your previous thread about
contrasts could have been solved in one email if we could have shown
you how to set the contrasts on your data and then it matched your SAS
output).  In any case, whether you use lme or gls really depends on
your question and goals, I think.  Generalized least squares is not
the same as a random effects model.  If you want a random effect, you
cannot use gls.  If you just want correlated errors, gls is fine.

This part of your code strikes me as atypical though I cannot promise
it is wrong/not what you want: corr=corAR1(ID)

Cheers,

Josh
On Thu, May 3, 2012 at 1:44 PM, Charles Determan Jr <deter088 at umn.edu> wrote: