Skip to content
Prev 3635 / 29559 Next

error message when running errorsarlm

On Thu, 22 May 2008, evans324 at umn.edu wrote:

            
Heather:

OK, thanks. On first inspection, the choice of a distance criterion for 
neighbours seems to be part of the problem. Using:

nb_k5 <- knn2nb(knearneigh(coordinates(rd), k=5))
nb_k5s <- make.sym.nb(nb_k5)

where rd is the SpatialPointsDataFrame object, with many fewer neighbours 
than your 2500m or 3000m criteria, gives results from "Matrix" and "spam" 
that are identical, and most likely what you are after. These weights are 
the 5 nearest neighbours coerced to symmetric, so all ahave 5 neighbours 
and the largest number of neighbours is 12 (your 2500m criterion had a 
mean number of neighbours of 280, maximum 804). If you can live without 
your choice of neighbours (which in some settings may be getting pretty 
close to your market segment dummies), I'd advise using something much 
sparser (but symmetric). The sparser weights matrices also increase the 
speed dramatically.

If you look at the bottom of ?bptest.sarlm, you'll see a cheap and totally 
untested way of adjusting the output SEs, but please don't believe what it 
does, because it is treating the lambda value as known, not estimated. A 
guess at the remaining heterogeneity would be age by maintenance 
interaction, older houses will vary in value by maintenance, probably also 
by neighbourhood?

Hope this helps,

Roger