Skip to content

Help on variogram.gls (nlme package)

1 message · Cristina Silva

#
I am trying to use the nlme package in R following the book 
"Mixed-Effects Models in S and S-Plus". I have the latest versions of R
(1.6.1) and nlme (3.1-33) for Windows (95 or later).

I  had problems with the instruction Variogram using a gls class object 
(Section 5.4, pg 261-262). Even when I use the scripts included in the 
package, I get an error message and not the expected output. However, 
everything seems working fine with the plotting function:

 > Variogram( fm1Wheat2, form = ~ latitude + longitude )
Error in as.data.frame.default(x[[i]], optional = TRUE) :
         can't coerce array into a data.frame

 > plot( Variogram(fm1Wheat2, form = ~ latitude + longitude,
+        maxDist = 32), xlim = c(0,32) )

Could anybody help me with this?

Regards,

Cristina