Hi,
Variance-covariance matrix of the estimators has a dimension of 9000 x 9000. I am trying to find a way to extract a submatrix (32x32). It is not very easy to find the indices of the variables. The variables to be extracted from the matrix are sequential, so slicing may also work. I can also make a list of variable names to be extracted from the matrix, but I am not familiar with looping in Stata.
What is a clean and fast way of handling this problem in Stata?
Variance-covariance matrix of the estimators has a dimension of 9000 x 9000. I am trying to find a way to extract a submatrix (32x32). It is not very easy to find the indices of the variables. The variables to be extracted from the matrix are sequential, so slicing may also work. I can also make a list of variable names to be extracted from the matrix, but I am not familiar with looping in Stata.
What is a clean and fast way of handling this problem in Stata?
Comment