Announcement

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

  • Reshaping with patterned variable names

    If I am trying to reshape with many variables, most of which have variable names patterned in some predictable way, is there a method for me to not have to list out every single variable name in the reshape command? Here's some example code:

    Code:
    reshape HOME_C23A_ HOME_C23B_ HOME_C23C_ HOME_C23D_ HOME_C23E_ HOME_C23F_ HOME_C23G_ HOME_C23H_ HOME_C23I_ HOME_C23J_, i(id) j(year)

  • #2
    Something like

    Code:
    reshape long HOME_@_, i(id) j(which) string
    should work.

    Comment

    Working...
    X