Re: [R] controlling spatial autocorrelation in linear regression models

2012-06-11 Thread D.Soudis
Hi, Maybe this is helpful..?? http://www.ats.ucla.edu/stat/r/faq/spatial_regression.htm Best, Dimitrios -- View this message in context: http://r.789695.n4.nabble.com/controlling-spatial-autocorrelation-in-linear-regression-models-tp4632940p4632998.html Sent from the R help mailing list archi

[R] Saving estimates after nested loops

2012-06-08 Thread D.Soudis
 Hi R-listers, Savings regression results after a loop is straightforward. But what about when you have nested loops? I am running a regression of the form  lm(y~1+x+M+ D[,i] + D[,j] + D[,k]) where x is the variable of interest. M and D are vectors with other covariates. Vectors "M" and "x" ar