Hello Statalist,

A reviewer recently asked for a column that lists the number of observations in each regression coefficient. I am not sure how Stata could do this. Sample regression below.

Code:
 use http://www.stata-press.com/data/mlmus3/toenail,clear

. logit outcome i.treatment i.visit, or

Iteration 0:   log likelihood = -990.24352  
Iteration 1:   log likelihood = -905.82897  
Iteration 2:   log likelihood = -900.35401  
Iteration 3:   log likelihood = -900.33517  
Iteration 4:   log likelihood = -900.33517  

Logistic regression                             Number of obs     =      1,908
                                                LR chi2(7)        =     179.82
                                                Prob > chi2       =     0.0000
Log likelihood = -900.33517                     Pseudo R2         =     0.0908

------------------------------------------------------------------------------
     outcome | Odds Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
 1.treatment |    .829333   .0970424    -1.60   0.110     .6593677     1.04311
             |
       visit |
          2  |   .8628304   .1499067    -0.85   0.396     .6138172    1.212863
          3  |   .7171664   .1274266    -1.87   0.061     .5062649    1.015926
          4  |   .4603416   .0880158    -4.06   0.000     .3164706    .6696179
          5  |   .1546134   .0391922    -7.36   0.000     .0940762    .2541056
          6  |   .1352603   .0369504    -7.32   0.000     .0791843    .2310476
          7  |   .1385739   .0363363    -7.54   0.000     .0828863    .2316756
             |
       _cons |    .646659   .0865521    -3.26   0.001     .4974463    .8406292
------------------------------------------------------------------------------

I tried using table

Code:
. table outcome treatment visit if e(sample)

----------------------------------------------------------------------------------------------------------
          |                                      visit and treatment                                      
          | ---- 1 ---    ---- 2 ---    ---- 3 ---    ---- 4 ---    ---- 5 ---    ---- 6 ---    ---- 7 ---
  outcome |    0     1       0     1       0     1       0     1       0     1       0     1       0     1
----------+-----------------------------------------------------------------------------------------------
        0 |   92    93      92    99      94   105     103   111     116   125     107   119     119   125
        1 |   54    55      49    48      44    40      29    29      14     8      10     8      14     6
----------------------------------------------------------------------------------------------------------
But this only works for three measures at a time and won't work if I use any additional variables. Anyone?