Dear all,
I want to make GWR analysis to predict precipitation distribution measured from 225 meteorological stations. I have three independent variables (Z, V1, V2). I want to obtain predictions on the grid dataset which has 31203 number of pixels. I gave some details about my datasets below. While performing GWR, I get error message: "new data matrix rows mismatch" How can I solve that problem? Thanks, Pinar. station.grid<-read.table("D:\\R\\dem.txt", header=TRUE) station<-read.table("D:\\R\\station.txt", header=TRUE) grid = SpatialPointsDataFrame(data=station.grid,coords=cbind(station.grid$X,station.grid$Y)) station = SpatialPointsDataFrame(data=station, coords=cbind(station$X,station$Y)) > names(grid) [1] "Z" "X" "Y" "V1" "V2" > names(station) [1] "PREC" "Z" "X" "Y" "V1" "V2" bw=gwr.sel(PREC~station$Z+station$V1+station$V2,data=station,adapt=T) gwr <-gwr(PREC~station$Z+station$V1+station$V2,data=station,adapt=bw, fit.points = grid, predict=TRUE, se.fit=T) Error in gwr(PREC ~ station$Z + station$V1 + station$V2, data = station, : NEW DATA MATRiX ROWS MiSMATCH ---------------------------------------------------------------- [[alternative HTML version deleted]] _______________________________________________ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo