Announcement

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

  • using spset

    When I use spset on my data the response correctly identifies the data as panel. When I the try to change from planar coordinates to latitutde longitude with spset, modify coordsys(latlong, miles) the response now indicates that the data is cross section. What am I doing incorrectly?

  • #2
    Here are my commands. Why does spset, modify see the data as cross section?????

    xtset zip year
    panel variable: zip (strongly balanced)
    time variable: year, 2000 to 2021
    delta: 1 unit

    . spset zip, coord(lat E)
    Sp dataset Core estabs spatial data.dta
    data: panel
    spatial-unit id: _ID (equal to zip)
    time id: year (see xtset)
    coordinates: _CX, _CY (planar)
    linked shapefile: none

    . spset zip, modify coordsys(latlong, miles)
    option coordsys() not allowed
    r(198);

    . spset, modify coordsys(latlong, miles)
    Sp dataset Core estabs spatial data.dta
    data: cross sectional
    spatial-unit id: _ID (equal to zip)
    coordinates: _CY, _CX (latitude-and-longitude, miles)
    linked shapefile: none

    Comment

    Working...
    X