Announcement

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

  • Spmap Using Individual Level Data

    I am currently trying to map census demographic information by county in a state. I have the shapefile for the map info and a list of individual responses from the census. I successfully merged the data, but I the spmap command, and returned error: "Variable id specified in option id() does not uniquely identify the observations". This is naturally as a result of there being multiple individuals, and thus data entries in each county. Does anyone know a solution to this?

  • #2
    You probably need to tag one individual in each county to map. See the -tag()- function of egen or the contract command.

    Code:
    help egen
    Code:
    help contract

    Comment

    Working...
    X