Announcement

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

  • #16
    Please start a new thread with such a completely different question. You need Oaxaca-Blinder in the title.

    Comment


    • #17
      okay! Thank you Cox.

      Comment


      • #18
        And Yes, I found the answer from stata journal.

        Comment


        • #19
          Originally posted by Nick Cox View Post
          tabcount is from SSC. Please remember to explain where user-written programs you refer to come from.

          Also check out tabm program from the same author: it's in the tab_chi package on SSC

          and

          Ben Jann's mrtab (SJ).
          Is there any way to get -tabm- to show percents instead of pure frequencies? It doesn't seem to work with the following options: "percent" "row(percent)" "statistic(percent)"

          Comment


          • #20
            #19 tabm is a wrapper for tabulate.


            The options of tabulate should work. Where are you reading about those options? tabm is not a wrapper for the different command table either in version 17 or earlier.

            Here is a self-contained script to give flavour assuming download of tab_chi from SSC.

            Code:
            clear
            set obs 100
            set seed 2803
            
            forval j = 1/5 {
                gen y`j' = runiformint(1, 5)
            }
            
            tabm y?
            
            tabm y?, row
            tabm y?, col
            Last edited by Nick Cox; 08 Mar 2022, 06:58.

            Comment


            • #21
              Originally posted by Nick Cox View Post
              #19 tabm is a wrapper for tabulate.


              The options of tabulate should work. Where are you reading about those options? tabm is not a wrapper for the different command table either in version 17 or earlier.

              Here is a self-contained script to give flavour assuming download of tab_chi from SSC.

              Code:
              clear
              set obs 100
              set seed 2803
              
              forval j = 1/5 {
              gen y`j' = runiformint(1, 5)
              }
              
              tabm y?
              
              tabm y?, row
              tabm y?, col
              Thank you! I'm very new to stata so I'm mostly going by intuition.. tabm y?, row did the job, but still display both absolute frequencies and percent. Is there any way to only display percent?

              Comment


              • #22
                Documentation beats intuition unless your intuition is really good. As said, tabm is a wrapper for tabulate and clicking through to its help identifies the option nofreq.

                Comment


                • #23
                  Haha true! thanks again

                  Comment

                  Working...
                  X