Dear all,

 

I would like to append a listw object to another listw object such that I
can keep it in its format. The idea is creating a spatial weights list for
countries and years based on cshapes. However, I was not able to combine two
listw objects without turning them into a regular list. Is there any simple
trick or is what I would like to do anyway useless for current spatial
analysis packages (e.g. splm or spdep)? I am relatively new to both R and
spatial analysis and would be happy about any comments!

 

Jerg

 

result0 <- distmatrix(as.Date("1950-6-30"), type="capdist", useGW=T)

result0 <- 1/result0

diag(result0) <- 0

result <- mat2listw(result0)

result$year <- 1950

# loop

for (year in 1951:1960) {

   date.current <- paste(year, "6", "30", sep="-")

   result.current <- distmatrix(as.Date(date.current), type="capdist",
useGW=T)

   result.current <- 1/result.current

   diag(result.current) <- 0

   result.current2 <- mat2listw(result.current)

   result.current2$year <- year

   result <- #???#(result, result.current2) }


	[[alternative HTML version deleted]]

