Announcement

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

  • Append horizontally

    Dear Stata users,
    I would like to append two datasets but horizontally. The joinby command seems the right command to use, but the two datasets do not have variables in common to master and thus a join is not possible. Could anyone explain me what code should I use?

  • #2
    You can create your own common variable in both datasets, e.g.
    Code:
    gen id = _n
    For more specific advice you have to tell us more about your data.

    Comment

    Working...
    X