Dr. Attaullah Shah
Keymaster
Post count: 106

Nesting is possible using the merge sub-command of the flexmat. See examples on this page (Section 10. merge) https://asdocx.com/flexmat-create-flexible-tables-in-stata-mata/. However, it is must that you have the row names exactly the same for rows that needs to be nested.