Attaullah Shah
Moderator
Post count: 80

The algorithm behind tabdisp is quite complex. Initially, I did not intend to include a by() option. However, in response to your request, I have now added this feature. Please note that the output might slightly deviate from what is produced by Stata. This is currently the best achievable result. After updating asdocx, you can try the following example
[code]
asdocx tabdisp when, c(bp) by(sex) concise replace

Tabulation of bp : sex = 1
0 |1 2
—-+—————————————————————————–
1 |Status bp
—-+—————————————————————————–
2 |Before 143
3 |After 153
———————————————————————————-
Notes:

Tabulation of bp : sex = Male
0 |1 2
—-+—————————————————————————–
1 |Status bp
—-+—————————————————————————–
2 |Before 152
3 |After 149
———————————————————————————-
Notes:
[/code]