Announcement

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

  • Matching postcode to state

    Hi,

    I have a dataset, where each observatiob indicated their individual postcode. I have another dataset with postcodes and the corresponding states.

    Postcode variable in both data sets "PLZ".

    Since the the postcodes don't match 1:1 a merge doesn't seem feasible.

    What's the best option to list the corresponding state to each observation in the original dataset?

    Many thanks!

    Julia

  • #2
    The solution is a merge. Say you have your person data open, than you would type something like merge m:1 PLZ using plz_data.dta where plz_data.dta is the file that relates postcodes to states.
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment

    Working...
    X