Re: [R] Correlation structures in gls with repeated measurements

2008-07-02 Thread t03eh7
Thank you, it looks like that was the problem Emma > Emma, > > It looks like there is at least one location that has been sampled at > least twice in some year. A co-worker of me got similar errors. After > checking his data carefully he found a duplicate row. Removing the > duplicate row solve

[R] Correlation structures in gls with repeated measurements

2008-07-02 Thread t03eh7
Hi, I am trying include a spatial correlation structure into a gls model but keep getting the following error: > ocean<-read.table("C:\\oceanography2.txt",header=TRUE) > library(nlme) > YEAR<-as.factor(ocean$YEAR) >group<-groupedData(san_dens~temp_grad*pyc_grad*start_thermo|YEAR,data=ocean) >