I need to create N NxN matrices and than concatenate these matrices horizontally. My N is 1318 so concatenating these matrices will form a final matrix of 1318 X 1737124. Moreover, I need to create these matrices through loop. I am confused how should I code it. As i NxN matrix has -1 on its diagonal and 1 for each element of ith column except for (i,i) which is zero.Can you help regarding that how can I create N matrices in this manner. I am really new to stata.
-
Login or Register
- Log in with
Comment