Announcement

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

  • extracting elements from tab results

    Hi there

    I'm trying to extract and store results from a tab command

    tab var1 var2

    [output suppressed]

    "return list" gives me the following scalars:
    r(N) = 11318466
    r(r) = 2
    r(c) = 2

    This tells me the total number of observations, and that it is a 2x2 table, but I would like to extract and store the actual numbers from the 2x2 table.

    Thanks

  • #2
    -help tabulate twoway- will show you that there is a -matcell()- option that allows you to create a matrix with the contents of the table.

    Comment


    • #3
      Ah yes, thanks!

      Comment

      Working...
      X