Dr. Attaullah Shah
Keymaster
Post count: 106

Hi Isabel
Perhaps, there is a spelling mistake in the sub-command wmat. The error message shows what, not wmat. Here is a working example.

webuse nlswork, clear
mixed ln_w grade age c.age#c.age ttl_exp tenure c.tenure#c.tenure || id:
estadd beta
matrix b = e(beta)
matrix betas = b'
asdocx wmat, mat(betas) right dec(3)


  0 |1                                                           2 
----+-----------------------------------------------------------------------------
  1 |                                                           y1 
----+-----------------------------------------------------------------------------
  2 |grade                                                   0.345 
  3 |age                                                     0.446 
  4 |c.age#c.age                                                .z 
  5 |ttl exp                                                 0.343 
  6 |tenure                                                  0.291 
  7 |c.tenure#c.tenure                                          .z 
  8 | cons                                                      .z 
  9 | cons                                                      .z 
 10 | cons                                                      .z 
----------------------------------------------------------------------------------