![Compute within-group multivariate statistics and store them in a list](https://blogs.sas.com/content/iml/files/2020/07/MVStatLists1.png)
I recently showed how to compute within-group multivariate statistics by using the SAS/IML language. However, a principal of good software design is to encapsulate functionality and write self-contained functions that compute and return the results. What is the best way to return multiple statistics from a SAS/IML module? A convenient