Skip to content
Prev 1462 / 29559 Next

GWR Newbie

On Tue, 7 Nov 2006, Raphael Saldanha wrote:

            
Thank you for a good report. With high probability, one of the variables 
in your model has missing values. This is signalled by the zero CV scores, 
too. I reproduced your problem in the Georgia data set example on the help 
page by:

data(georgia)
gSRDF$TotPop90[1] <- NA
g.adapt.gauss <- gwr.sel(PctBach ~ TotPop90 + PctRural + PctEld + PctFB + 
  PctPov + PctBlack, data=gSRDF, adapt=TRUE)
res.adpt <- gwr(PctBach ~ TotPop90 + PctRural + PctEld + PctFB + PctPov + 
  PctBlack, data=gSRDF, adapt=g.adapt.gauss)

with the same error message, because the code for the model itself drops 
the observation with the missing value, but its polygon is still present. 
You'll have to decide whether to subset to remove that polygon, or to try 
to establish what the missing value should have been. It is possible that 
the code should simply fail, reporting missing values in the data.

Roger