Kevin Blaine
Participant
Post count: 45

Hi Dr. Shah — I’ve updated asdocx, but I’m still having issues using tabdisp. See example below:

sysuse bplong.dta

tabdisp when, c(bp) by(patient) concise

Results:

...
----------+---------------
117       |
   Before |            161
    After |            152
----------+---------------
118       |
   Before |            165
    After |            174
----------+---------------
119       |
   Before |            149
    After |            151
----------+---------------
...

Using asdocx:

                                 Tabulation of when
  0 |1                                                   2 
----+-----------------------------------------------------------------------------
  1 |Status                                             bp 
----+-----------------------------------------------------------------------------
  2 |Before                                            143 
  3 |After                                             153 
----------------------------------------------------------------------------------

asdocx seems to be collapsing the data or only presenting one observation instead of separating out by PatientID.

Any ideas?

Thanks,
Kevin