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
--
Cristina Silva
IPIMAR - Departamento de Recursos Marinhos
Av. de Bras?lia, 1449-006 Lisboa
Portugal
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._