Announcement

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

  • Create a new variable (combining two variables)

    Hello,

    I am working with a panel data and I need to create a variable which will combine both city and country names:


    I have two separate variables country and city. For each country and city combination, I need to create a variable which needs display the city and country in one variable and should look like this : New York, USA. (also with variable label.)

    Any thoughts on this?

    Many thanks for your help.








  • #2
    See http://www.stata-journal.com/sjpdf.h...iclenum=dm0034 for an accessible discussion.

    Comment


    • #3
      Nick Cox Thank you so much. You are awesome!

      Comment


      • #4
        Nick Cox Many thanks!

        Comment

        Working...
        X