Hey all,

I need to perform a spatial gls and I'm using nlme package. I constructed a
 distance matrix using the corLin command Despite the  R to make the matrix
it seems that is not using to perform the gls, since that the results of
GLS with this distance matrix are exactly the same that an OLS. Someone
could help with this or suggesting another package, tutorial or script?
Here is the script:
library(nlme)

dat<read.table("
http://zoo.bio.ufpr.br/pie/data/birds/tyrannidae.dadostyrannidaefinal_semoutlier.txt
")

# spatial GLS->peakfreq=NDVI*masse

distgeo=corLin(form=~long+lat)
peakfreq<-gls(peak_freq~NDVI*masselog10, correlation=distgeo, data=dat)
summary(peakfreq)

#OLS - peakfreq=NDVI*masse

peakfreq<-lm(peak_freq~NDVI*masselog10,data=dat)
summary(peakfreq)

	[[alternative HTML version deleted]]

