Announcement

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

  • Creating a table with multiple variables as columns

    I have generated three variables and I want to combine the three into a table with one variable in each column and the column name as the variable name. Is that possible in STATA? If it is possible, what is the command for that?
    For example, I have variable name, life time, and weight
    Name Life time Weight
    Patient 1 3 60
    Patient 2 4 76
    Patient 3 5 45
    Patient 4 2 31
    Patient 5 6 77
    Patient 6 8 56
    Patient 7 10 59
    Patient 8 12 80
    Patient 9 7 73

  • #2
    That looks like a case for list
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment

    Working...
    X