Attaullah Shah
Moderator
Post count: 70

This issue is now fixed in the asdocx beta version. I have added the new features to the beta version of asdocx. All new features are first added to the beta version. Once that version is stable, it is released as a regular version. To install the new version, copy and paste the following line in Stata and press enter.

asdocx_update, beta

Restart Stata after installation of the new version.

Here is an example

mat A = (1,2,3\ 4,5,6\ 7,8,9)
matrix rownames A = myrow1 myrow2 myrow3
mat colnames A = mycol1 mycol2 mycol3
flexmat addmat, matname(A)
 0 |1                           2                3                4 
----+--------------------------------------------------------------------
  1 |                       mycol1           mycol2           mycol3 
----+---------------------------------------------------------------------
  2 |myrow1                      1                2                3 
  3 |myrow2                      4                5                6 
  4 |myrow3                      7                8                9 
---------------------------------------------------------------------------