ACS Data Users Group

 View Only
  • 1.  PUMA adjacency matrix?

    Posted 11-14-2017 04:12 AM

    Does anybody have a resource at the tip of their fingers that would have PUMA adjacency structure? I.e., which PUMA is a neighbor to another PUMA.



  • 2.  RE: PUMA adjacency matrix?

    Posted 11-14-2017 04:20 AM
    On TIGERweb you can turn on the PUMA layer and see what PUMAs are around the area you are looking at. Not sure if that is what you were wanting or not.


  • 3.  RE: PUMA adjacency matrix?

    Posted 11-14-2017 04:22 AM
    Thanks, Barbara -- I need the full 2351 x 2351 matrix... I can't be doing those PUMAs one by one, I need to read the whole file and process it.


  • 4.  RE: PUMA adjacency matrix?

    Posted 11-14-2017 04:30 AM
    I believe that there are packages in R and in Stata that will produce in adjacency matrix from a GIS shape file


  • 5.  RE: PUMA adjacency matrix?

    Posted 11-14-2017 04:34 AM
    Thanks, Matthew -- do you mean like this -- stackoverflow.com/.../874882


  • 6.  RE: PUMA adjacency matrix?

    Posted 11-14-2017 04:42 AM
    I'm not as familiar with the R packages, but I have used shp2dta and spmap in Stata.


  • 7.  RE: PUMA adjacency matrix?

    Posted 11-14-2017 05:59 AM
    Matthew, I see. I don't think they produce the adjacency matrix. But I guess I can ask Kevin Crow who produced them.


  • 8.  RE: PUMA adjacency matrix?

    Posted 11-14-2017 06:26 AM
    If you have the layer and you have access to ArcGIS, you should be able to produce such a matrix using the Polygon Neighbors tool. I recently did this for tracts in LA county. The output is "long" in the sense that you'd have multiple rows for "source_FIPS" with a unique "neighbor_FIPS" - you also get the length of the shared border and whether or not there's a "node" (corner adjacency).


  • 9.  RE: PUMA adjacency matrix?

    Posted 11-14-2017 06:31 AM
    Should have stated this above: the Polygon Neighbors tool is under "Analysis Tools" -> "Proximity" in ArcGIS Toolbox.