[R] Help on variogram.gls (nlme package)

Cristina Silva csilva at ipimar.pt
Tue Nov 19 12:39:12 CET 2002

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?



Cristina Silva
IPIMAR - Departamento de Recursos Marinhos
Av. de Brasília, 1449-006 Lisboa
Tel.: 351 21 3027096
Fax: 351 21 3015948
csilva at ipimar.pt

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list