Announcement

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

  • Export tabstat to a text file (.txt)

    Hi guys,

    I am searching a way how I can export descriptive/summary statistics to a .txt file. I've been trying tabstat, tabexport and outreg2, but didn't really work.
    Tabstab is the good way it looks like, but I didn't find a way how to export it as a text file (.txt). But this should be somehow possible?

    tabstat `descriptive', stats(n mean sd min max) format (%9.2f) col(stats) save

    I tried to make a path behind save, but stata comes always up with something wrong in it...
    Anyone has a way to export summary statistics to a .txt file?

    Thanks for help.
    Nathan

  • #2
    The save option doesn't save to a file as is documented.

    Code:
    sysuse auto, clear
    log using tabstat.log
    tabstat mpg price weight
    log close
    type tabstat.log

    Comment

    Working...
    X