[R-sig-Geo] predict for spatial filtering in spdep

Joelle k. Akram chino_tones at hotmail.com
Mon Mar 19 03:05:57 CET 2018


Dear all,


In the spdep  package, there is an eigenvector spatial filtering function (SpatialFiltering).

In the package document, it can be used with Linear regression (lm) to remove

spatial autocorrelation by adding it to the lm formula as a covariate.


The example does not provide though, how to apply this Spatial filtering regression (sfr) on

unseen (hold-out) sample data. I'd like to predict on 'test' data using the fitted sfr model.

Any insight is welcome.


chris


	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list