![Extract the lower triangular elements of a matrix](https://blogs.sas.com/content/iml/files/2012/08/t_lowertriangular.png)
It is common to want to extract the lower or upper triangular elements of a matrix. For example, if you have a correlation matrix, the lower triangular elements are the nontrivial correlations between variables in your data. As I've written before, you can use the VECH function to extract the