Announcement

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

  • getting table to produce the equivalent of tabulate A B,col row

    Hello everybody,
    I want to export to MS Word the result of tabulate A B,col row

    This cannot be done directly using the new collect commands

    To do this I need to use the table command, but I did not manage to get a similar output
    Any help welcome
    Pascal

  • #2
    Here is a reproducible example that will get you started in a useful direction. I'm still learning the -table- system myself, so I suggest that you spend some time with the PDF documentation and examples to learn how to customize this further. See -help collect- and -help table- for help.

    Code:
    sysuse auto
    sum price
    gen hiprice = price > r(mean)
    
    tab hiprice foreign, cell row
    table (hiprice) (foreign) , stat(frequency) stat(percent, across(hiprice)) stat(percent, across(foreign))

    Comment

    Working...
    X