I have a covariance matrix that is lower triangular where the ones represent values:
I'd like to delete the rows and columns that are all zero:
I know that there is probably some way of doing this with st_select and st_matrix in mata, but everything I've tried has been met with a error. Can someone help me out?
Code:
0 0 1 0 1 1 0 1 1 1 0 1 1 1 1 0 0 0 0 0 0 0 1 1 1 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 0 1 1 1 0 1 1 1 1 0 1 1 1 1
Code:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Comment