Dr. Attaullah Shah
Keymaster
Post count: 106

Hello Isabel
Since groups command is not an official Stata command, asdocx is not aware of it. Therefore, you are receiving the mentioned error. On your request, I have worked on it and have added it to asdocx. You should update asdocx with the following code

asdocx_update

Once installed, you can use asdocx with the groups command in a usual manner. Following is an example from the help file of the groups command.

webuse nlswork
asdocx groups collgrad not_smsa c_city south, order(high)
  


----+---------------------------------------------------------------------------------
  1 |college gradu               SMSA    central city     south   frequency     percent 
----+---------------------------------------------------------------------------------
  2 |0                              0           0           0        5742      20.129 
  3 |0                              0           1           0        4941      17.321 
  4 |0                              1           0           1        3982      13.959 
  5 |0                              0           1           1        3455      12.112 
  6 |0                              1           0           0        3086      10.818 
  7 |0                              0           0           1        2527       8.859 
  8 |1                              0           0           0        1412       4.950 
  9 |1                              0           1           0        1096       3.842 
 10 |1                              0           1           1         698       2.447 
 11 |1                              0           0           1         598       2.096 
 12 |1                              1           0           0         566       1.984 
 13 |1                              1           0           1         423       1.483 
--------------------------------------------------------------------------------------