Announcement

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

  • supress rowtotal option in tabulate of 2*2 table

    Hi all,

    I'm looking for an option to suppress the rowtotal values in tabulate(2*2 table). if anyone came across such option or any other method available for solving this, kindly help !!

  • #2
    You can use table instead of tabulate.
    Code:
    tab x y
    is equivalent to
    Code:
    table x y, column row
    You can remove the column or row options to your liking.

    Comment


    • #3
      Hi Wouter Wakker,

      Many thanks for your reply. I can see it's working but, is there a way to save the output in a dataset/.dta format or (in to the list) format so that i can use those value to do some mathematical operations later?

      Comment


      • #4
        Yes there is, adding the replace option to table replaces the data in memory. Hence, you may want to use preserve and restore:
        Code:
        preserve
        table x y, row replace
        save output_table
        restore

        Comment


        • #5
          Many thanks for helping out Wouter Wakker.

          Comment

          Working...
          X