I have converted the results from an estimation command to a matrix of size 100 x 1 (e.g. mat A= e(W_weights)). I am looking to count the number of elements in that column that are not equal to zero (and save that number in a local). Is there a way to do that?
-
Login or Register
- Log in with
Comment