Announcement

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

  • Reshape or transpose

    Hi all, I have a question that I assume is incredibly simple that I just can't figure out: I have data wrangled to a point where I've got a bunch of demographic characteristics saved as individual variables, with each with one 'value' (their means, not that it matters). What I really want is two variables: v1 would have a list of the demographic characteristics, and v2 would have their values.

    Is this just a weird reshape? Do I have to add some type of i and j variable to reshape on? I also tried -xpose- to no avail.



    Code:
    * Example generated by -dataex-. For more info, type help dataex
    clear
    input double(age black white) int score
    12.4 .5 .335 104
    end

  • #2
    Code:
    xpose, clear varname

    Comment

    Working...
    X