asdocx: Export from Stata to Word, Excel, LaTeX & HTML › Forums › asdocx Forum › bysort and if don’t get along › Reply To: bysort and if don’t get along
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
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: