Hello everyone,
I am working with spatial data. My unit of analysis is ZIPCODE and my variable of interest is a 0\1 categorical variable ("gentrified"). I am interested in generating a dummy variable "neighbour_to_gentrified" ==1 if the ZIPCODE has gentrified==0 and is adjacent to a ZIPCODE with gentrified==1. Basically, I want to identify non gentrified ZIPCODE which are adjacent to a gentrified ZIPCODE. I have a shapefile and I have spset my data in order to generate an adjacency matrix W, but I am not able to generate such a specific variable.
Can you suggest to me how to proceed?
Thank you very much!
I am working with spatial data. My unit of analysis is ZIPCODE and my variable of interest is a 0\1 categorical variable ("gentrified"). I am interested in generating a dummy variable "neighbour_to_gentrified" ==1 if the ZIPCODE has gentrified==0 and is adjacent to a ZIPCODE with gentrified==1. Basically, I want to identify non gentrified ZIPCODE which are adjacent to a gentrified ZIPCODE. I have a shapefile and I have spset my data in order to generate an adjacency matrix W, but I am not able to generate such a specific variable.
Can you suggest to me how to proceed?
Thank you very much!
Comment