Announcement

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

  • Form a matrix out of a table

    Hi,

    I've got the following question:
    If I had three variables
    - x: which can have the values; 1, 2, 3 or 4
    - y: which can have the values; 1, 2, 3 or 4
    - z: is a dummy variable 0/1.

    and I do the following command:

    tabulate y x if z == 1

    This gives me 4*4 table. Is it possible to create directly a matrix (4*4) out of this table without typing all the 16 values by hand?

    Hope someone can help

    thanks a lot,
    roland





Working...
X