Hi all!

 

As a newcomer to both r and spatial econometrics I am trying to become
familiar with both worlds. I have a question which is hopefully not too
trivial: I am trying to create a second order queen matrix for European
regions. As indicated in the documentation on spdep nblag and
cumul_nblag are the appropriate commands to carry out this task
(starting from the poly2nb command). Both commands worked fine, but they
provided me with a second order matrix with one region having zero
second order neighbors  (IE01 - Central Ireland). When I tried to
convert the nb object from cumul_nblag to a listw object the command
failed with the error message that one region has zero neighbors. This
struck me as odd given that the combination of first and second order
matrices should make sure that each region has a neighbor (I don't have
islands in my set). After inspecting the two neighbor matrices I noticed
that the combination  of the two matrices based on cumul_nblag worked
out for every region except the one with zero second order neighbors. My
question now is if it is customary for nblag_cumul to endow each region
that has zero second order neighbors also in the cumulated matrix with
zero regions? Does that make sense from a theoretical point of view?

 

I would be grateful for any help in this regard!

 

Christoph

 

PS: I am happy to provide my dataset if that is helpful.

 

Dr. Christoph Hauser

University of Innsbruck

Department of Economic s

Universitaetsstrasse 15

6020 Innsbruck

Tel.: 0043 512 507 7354

Fax: 0043 512 507 2980

 


	[[alternative HTML version deleted]]

