[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: extracting diagonal elements from a matrix
I am using Stata 7 and have to create two new variables out of a square
1) one variable consisting of the diagonal elements of a matrix
2) the other variable consisting of the row sum of all the elements
excluding the diagonal one
I would really appreciate any help with that.
* For searches and help try: