Skip to content
Prev 8496 / 29559 Next

GWR Analysis

On Fri, 11 Jun 2010, Pinar Aslantas Bostan wrote:

            
You need to provide the detailed output of traceback(), and probably also 
run gwr() under debug() to see whether this is a data problem or a code 
problem. Does gwr() work when predict=FALSE, and/or predict=TRUE, 
se.fit=FALSE? The error message is generated when the number of columns in 
the matrix of X variables is not the same in data and and fit.points. Are 
the variables in both cases stored in the same way? What do 
str(station.grid) and str(station) look like before conversion to SPDF and 
after? Is one variable a factor in one and numeric in the other? Running 
under debug() will let you check what x and predx look like.

If this sounds hard, consider putting your data on a website and posting 
the link.

Hope this helps,

Roger
station$V1 + station$V2, data=station, adapt=bw, 
fit.points = grid, predict=TRUE, se.fit=T)