Hello all,

I am using stata version 17.

I ran a polychoric correlation on about 100 variables.
The correlation matrix is returned in the matrix list r(R).
I would like to use this matrix as a dataset and drop values less than 0.3.

Does anyone know how I can do that directly in stata? So far, all I have is the following:

polychoric 'list of var'
return list
matrix list r(R) // estimated correlation matrix

matrix poly= r(R) // I tried this to save the matrix as a separate dataset, but the cells are empty so that's wrong.
svmat2 double poly, names(col) rnames(rows) full // This works, but poly is empty. So the data does not appear.


I exported the matrix in excel as well to do what I wanted, but I am wondering if there's a direct way in stata. Grateful if anyone knows how to do this. I am trying to improve my stata skills. Thank you!