Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Downloading shapefiles and converting to stata format

    Hi, I am a uni student doing my research on ethnic networks in the UK and its effect on wages. I have data on individual wages and ethnicities as well as government office regions and I aim at conducting spatial autocorrelation research with this data. In doing so, I have been looking for shapefiles on UK government office regions and I am honestly quite lost on how to convert the shapefiles I have into dta format. Could anyone please point me in the right direction with this sort of task? I would appreciate that immensely. Thank you!

    These are the shapefiles which I intend on converting into dta files and cant seem to figure out how.

    https://geoportal.statistics.gov.uk/....540302%2C6.52

  • #2
    You just need to download the .shp file and in the same directory run spshape2dta

    Code:
    . spshape2dta NUTS1_Jan_2018_SGCB_in_the_UK
      (importing .shp file)
      (importing .dbf file)
      (creating _ID spatial-unit id)
      (creating _CX coordinate)
      (creating _CY coordinate)
    
      file NUTS1_Jan_2018_SGCB_in_the_UK_shp.dta created
      file NUTS1_Jan_2018_SGCB_in_the_UK.dta     created

    Comment

    Working...
    X