Announcement

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

  • Creating a latex two way table (using esttab) – NOT a regression results table

    Hi everyone,

    I want to create a latex table out of the table below using esttab

    Code:
     
     tab jobsep2004 anyduration
    
        total |
     number of |
           job |
    separation |
        s over |                                            anyduration
     2004-2012 |         1          2          3          4          5          6          7          8          9 |     Total
    -----------+---------------------------------------------------------------------------------------------------+----------
             0 |        10         50         69         54         40         35         19         17         22 |       316
             1 |         0          3         13         20         29         36         43         35         30 |       209
             2 |         0          0          1          4          9         18         17         23         21 |        93
             3 |         0          0          0          0          1          3          5         14          9 |        32
             4 |         0          0          0          0          0          0          1          3          3 |         7
             5 |         0          0          0          0          0          0          0          0          2 |         2
    -----------+---------------------------------------------------------------------------------------------------+----------
         Total |        10         53         83         78         79         92         85         92         87 |       659

    If I use eststo and esttab, it breaks it into newlines along the columns.

    Using tabstat I can't recreate the table.

  • #2
    I found the answer. Use the unstack option in esttab

    .estpost tab jobsep2004 anyduration
    esttab ., cells("b") unstack noobs

    Comment

    Working...
    X