[R] lme function
Mark Wilson
mark.wilson at ucc.ie
Thu Nov 23 21:13:04 CET 2006
Hello.
As advised by Mick Crawley in his book on S+, I'm trying to use the lme
function to examine a linear relationship between two variables measured at
60 locations in 12 sites, while taking account of any spatial
autocorrelation (i.e. similarity in variation between the two variables that
is due to site). I am using the function as follows:
model<-lme(yvariable~xvariable,random=~xvariable|site)
If you know your way around this function, I would be very grateful if you
could confirm that this approach is a valid one, or point out why it isn't.
I'd also be very keen to hear any suggestions regarding alternative ways to
address the spatial autocorrelation in my data (I'm hoping to arrive at a
slightly more elegant solution than simply taking site averages for each of
the two variables and running a correlation using these mean values).
Thanks,
Mark
--
View this message in context: http://www.nabble.com/lme-function-tf2694308.html#a7513794
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list